解决办法是用UIView代替UIScrollView
if(iPhone4) {
[self.viewaddSubview:self.mainScrollView];
[self.mainScrollViewaddSubview:self.headView];
[self.mainScrollViewaddSubview:self.middleView];
[self.mainScrollViewaddSubview:self.bottomView];
}else{
[self.viewaddSubview:self.backView];
[self.backViewaddSubview:self.headView];
[self.backViewaddSubview:self.middleView];
[self.backViewaddSubview:self.bottomView];
}
这种情况没查出原因,应该是和UIStatusBar的设置有关,不知道同事做了什么
self.automaticallyAdjustsScrollViewInsets=NO;用这行代码也解决了问题