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