How iOS UITableView under NavigationBar?

后端 未结 5 1317
渐次进展
渐次进展 2021-01-11 15:17

I have set

NavigationController.NavigationBar.Translucent = true;

Then add table and set frame to RootView Frame, and:

             


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-11 15:37

    Try this:

        if([self respondsToSelector:@selector(edgesForExtendedLayout)])
        {
           self.edgesForExtendedLayout = UIRectEdgeNone;
           self.automaticallyAdjustsScrollViewInsets = NO;
        }
    

提交回复
热议问题