2015-08-24 114 views
0

我的应用程序是在横向上的iPad。UIViewController免费表格

我创建了一个自由形式的UIViewController(width = 1024,height = 638)来添加到UIPageViewController中。

在自由形式的UIViewController的ViewDidLoad或ViewDidAppear中,我已经检查过高度,它的值仍然是768?

CGFloat yy1 = self.view.frame.size.height; 
CGFloat yy2 = self.view.bounds.size.height; 

//- yy1 = yy2 = 768f 

这是为什么?

+0

是的。有什么问题? – anhtu

+0

的值应该是638. – chipbk10

+0

您是否使用任何约束? – anhtu

回答

0

this解决了我的问题。

我需要在视图控制器的属性检查器中取消选中“调整从NIB视图”选项