在ios7里面如果有滚动视图的时候,比如UITableView,UIScrollView的时候有时候会偏移20像素。这时候可以这样设置
if ([[UIDevice currentDevice] systemVersion].floatValue>=7.0) {
self.automaticallyAdjustsScrollViewInsets = NO;
}
UITableView,UIScrollView的时候有时候会偏移20像素
猜你喜欢
转载自wenrisheng.iteye.com/blog/1991920
今日推荐
周排行