iphone - how to check if backgroundimage of UIbutton is added or not -
i want check how check if backgroundimage of uibutton present or not
i have code,
[button setbackgroundimage:[uiimage imagenamed:@"default_module.png"] forstate:uicontrolstatenormal];
i want check if there image named "default_module.png" present , included in project folder or not.
thanks
just this:
if(![uiimage imagenamed:@"default_module"]){ //the image not present. act accordingly. }else{ //continue normal }
Comments
Post a Comment