常用设置:
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars =NO;
self.modalPresentationCapturesStatusBarAppearance =NO;
self.navigationController.navigationBar.translucent =NO;
self.automaticallyAdjustsScrollViewInsets = NO
我已经加了下面的代码
self.edgesForExtendedLayout = UIRectEdgeNone;
但是从这个页面的父页面push到这个页面还是被挡住了,但是我从这个页面的子页面pop出来又不会被挡住。难道是我push的姿势不对吗
你是否设置了automaticallyAdjustsScrollViewInsets = NO?
C/C++ code
?
1
- (
void
)myInit
是我的子页面初始化方法,我没在下面代码里加上。不过我加上后又出现了问题。 加上这句后table列表获取数据:出错,网络错误。
C/C++ code
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if
(self) {
//[self myInit];
}
return
self;
}
网络错误基本上是参数引起的