视图将移动iPhone6标准显示的心情

时间:2015-03-19 08:53:24

标签: ios iphone-6

这是我的代码:

#define VIEW_TOP_BAR 60 
scroll_View = [[UIScrollView alloc]initWithFrame:CGRectMake(0,VIEW_TOP_BAR, self.view.frame.size.width, self.view.frame.size.height - VIEW_TOP_BAR)];

它会在viewcontroller中添加一个scrollview,在iPhone5和iPhone6(缩放显示)中也可以,但看起来scroll_view会高于它的正确位置。

以下是在缩放标准视图中运行的相同代码:

它在变焦的iPhone6或iPhone5,iPhone5s中非常完美:

enter image description here

但是,在标准的iPhone6中:

enter image description here

顺便说一下,在我的程序中,除了scroll_view和其中的小部件之外,所有小部件都构建在故事板中。

0 个答案:

没有答案