For instance I have image great_image.png and [email protected] for retina display. If I want to create UIImage in code I just write:
UIImage *image = [UIImage imageNamed:@"great_image"];
But if I create UIImageView in xib and I want to set image in xib, I need to write image name.
What should I write: "great_image.png" or "[email protected]" or "great_image"
? (because if I write "great_image", I will not see image in xib).
Update: the second part of question:
What if I only have [email protected] and don't have great_image.png, should I write great_image.png in xib anyway?