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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -