在iOS开发中,有时候会遇到tableView
向上偏移64个像素,是什么原因呢?
是因为iOS 7中使用全屏布局的缘故,设置一下属性就可以解决问题。
self.automaticallyAdjustsScrollViewInsets = NO;
或者
self.edgesForExtendedLayout = UIRectEdgeNone;
在iOS开发中,有时候会遇到tableView
向上偏移64个像素,是什么原因呢?
是因为iOS 7中使用全屏布局的缘故,设置一下属性就可以解决问题。
self.automaticallyAdjustsScrollViewInsets = NO;
或者
self.edgesForExtendedLayout = UIRectEdgeNone;
本文标题:tableView向上偏移64个像素的问题
本文链接:https://www.haomeiwen.com/subject/shktwttx.html
网友评论