我设置我的iPhone应用程序的屏幕画面,支持iPhone 5,我已经设置了自动调整大小面具,也是我试图通过设置框架编程使用
loadview
如何为iphone帧大小5
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
CGSize result = [[UIScreen mainScreen] bounds].size;
if(result.height == 480)
{
// iPhone Classic
}
if(result.height > 480)
{
// iPhone 5
CGRect mainFrame = CGRectMake(0, 0, 320, 568);
self.view.frame = mainFrame;
}
}
但它没有工作,
任何一个可以告诉我,我该如何设置框架,thanx提前
你的项目有[email protected]? – sheraza 2013-05-07 07:17:43
不,我还没有添加飞溅图像 – 2013-05-07 07:18:24
是你的应用程序通用? – Nameet 2013-05-07 07:18:34