UIView under UINavigationBar on IOS7

前端 未结 3 1525
自闭症患者
自闭症患者 2020-12-15 15:12

We\'re working on the transition between IOS6 and IOS7 and have the next issues, for the moment without solution:

The structure of our view is the next one:

相关标签:
3条回答
  • 2020-12-15 15:33

    Regarding 2. We integrated the UIRefreshBar component and after refresh the UITableView always move under the UINavigationBar

    Make the NavigationBar not translucent, by default it is which allows views to scroll underneath it.

    0 讨论(0)
  • 2020-12-15 15:34

    Regarding
    1.The UIToolbar and UISearchBar is not visible any more write the below code in viewDidLoad and your problem will solved.

    [self setEdgesForExtendedLayout:UIExtendedEdgeLeft | 
                                    UIExtendedEdgeBottom | 
                                    UIExtendedEdgeRight];
    
    0 讨论(0)
  • 2020-12-15 15:50
    1. In viewDidLoad this worked for me

      [self setEdgesForExtendedLayout:UIRectEdgeNone];

    2. If you like storyboard, select the viewController and make sure Extended Edges >> Under top bars is not selected.

    enter image description here


    Update: For people like me, who can't install Xcode 5 available only in Mountain Lion:

    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
        [self setEdgesForExtendedLayout:UIRectEdgeNone];
    #endif
    
    0 讨论(0)
提交回复
热议问题