導航條與UIScrollView沖突解決方法
(1)在添加UIScrollView的ViewController中添加代碼
self.edgesForExtendedLayout = UIRectEdgeNone;
(2)在添加UIScrollView的ViewController中添加代碼
self.automaticallyAdjustsScrollViewInsets = YES;
(3)如果以上兩種方法都不可以解決,使用下面方法:
在添加UIScrollView的ViewController中添加代碼:
UIView *v = [[UIView alloc] init];
[self.view addSubview:v];
然后再正常添加UIScrollView即可