iphone - Image file name stored in a constant -
i have tableview image in each cell. i'm pulling data each cell plist including textlabel detailtextlabel , image file name. using
cell.imageview.image = [uiimage imagenamed:image_key];
the image_key constant set image. doesn't work. work if type image file name in message. have double checked file name stored in plist , double checked declaration inside of constants file. spelled correctly. there different way use constants set image?
do this:
#define image_key "apple.jpg" //
now:
cell.imageview.image = [uiimage imagenamed:@image_key];
if
#define image_key @"apple.jpg" //
now:
cell.imageview.image = [uiimage imagenamed:image_key];
Comments
Post a Comment