天天看點

iOS7 之後 tableView被navigationBar遮擋 問題詳解

http://bbs.csdn.net/topics/390846899?page=1

常用設定:

    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 ?

1 2 3 4 5 6 7 8

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil

{

self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

if

(self) {

//[self myInit];

}

return

self;

}

網絡錯誤基本上是參數引起的

iOS