2013-10-01 60 views

回答

0

你可以在你這樣的廈門國際銀行文件中設置的自動調整大小爲您的觀點:

enter image description here

通過代碼:

// Define for know if it's an iPhone 5 or not 
#define IS_IPHONE5() ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) && [UIScreen mainScreen].bounds.size.height == 568) 

- (void)viewDidLoad 
{ 
    [super viewDidLoad]; 

    // Set the view frame 
    self.view.frame = (IS_IPHONE5() ? CGRectMake(0, 0, 320, 568) : CGRectMake(0, 0, 320, 480)); 
} 
相關問題