Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
显示左侧菜单时,滚动视图位于状态栏下方。
我已经尝试将 setContentInset 设置为 tableview。它增加了一个上边距,但是当我滚动它时,它再次与状态栏重叠。
有什么解决办法吗?
将 Roma-MT 提供的代码放入:
[myTableView setFrame:CGRectMake(0, 20.0, self.view.frame.size.width, self.view.frame.size.height-20.0)];
在 viewDidAppear 工作!