我設置我的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