I am working on an app that would be for iPhone 5 and lower.
for images I am using this code
CGRect mainFrame = [[UIScreen mainScreen] bounds];
int imgIndex = arc4random() % 10 + 1;
if(mainFrame.size.height > 480)
[pBackgroundImageView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"dreams 1136x640 %d.jpg",imgIndex]]];
else
[pBackgroundImageView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"dreams_960x640_%d.jpg",imgIndex]]];
but I am not satisfied with it.
is there any specific naming convention for iphone 5 images?
Thanks in advance Mano
See Question&Answers more detail:os