ITeye博客

UITableView,UIScrollView的时候有时候会偏移20像素

wenrisheng · 2013-12-19 11:36 · ios · 移动开发 · Markdown

在ios7里面如果有滚动视图的时候,比如UITableView,UIScrollView的时候有时候会偏移20像素。这时候可以这样设置
if ([[UIDevice currentDevice] systemVersion].floatValue>=7.0) {
self.automaticallyAdjustsScrollViewInsets = NO;
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。