iOS7 View moves under status/nav bars when loadView called again

前端 未结 6 875
遇见更好的自我
遇见更好的自我 2021-02-13 03:57

I have a View Controller that creates its view programatically through the loadView method. The purpose of the view is to display a data models contents. When the v

6条回答
  •  遇见更好的自我
    2021-02-13 04:57

    Add following code its work for me for same issue, may be its help you

    /* ios 7 Change */
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
        {
            self.edgesForExtendedLayout = UIRectEdgeNone;
            self.automaticallyAdjustsScrollViewInsets = NO;
        }
    

提交回复
热议问题