1
我正在研究一款適用於iPhone 5及更低版本的應用程序。iPhone 5圖像的命名約定?
的圖像,我用這個代碼
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]]];
但我並不感到滿意。
是否有任何特定的iphone 5圖像的命名約定?
在此先感謝 馬諾