添加scrollerView时,开始视图向下偏移(如图)
5E0AFA10-142F-41FC-8D62-28D7B52DF388.png
手动滑动时仍然保持偏移状态,当通过定时器走一波后,试图恢复正常状态(如图)
EC0F8F70-E0B5-40AB-AAF5-73995A827684.png
解决方案:
- (void)viewWillAppear:(BOOL)animated{
self.automaticallyAdjustsScrollViewInsets = NO;
}
一句代码终结烧脑ing......
网友评论