iOS常见错误9-UITableView,UIScrollView,UICollectionView偏移20像素
在iOS7之后的系统里有滚动视图的时候,比如UITableView,UIScrollView, UICollectionView的时候有时候会偏移20像素。
我们可以判断一下系统再进行设置
if ([[UIDevice currentDevice] systemVersion].floatValue>=7.0)
{
self.automaticallyAdjustsScrollViewInsets = NO;
}
有问题请联系博主,邮箱:bestnathan@aliyun.com
著作权声明:本文由http://www.bestnathan.com/原创,欢迎转载分享。请尊重作者劳动,转载时保留该声明和作者博客链接,谢谢