0

テーブルビュー xib では、実行時にナビゲーション バーを表示できませんでしたか? 次のように私のコーディング

- (void)viewDidLoad
{
ar=[[NSMutableArray alloc]initWithObjects:@"When im happy..i...",@"When im sad.. i...",@"When i'm mad.i...",@"My worst habbit is....",@"The best thing about me is...",nil];
[super viewDidLoad];
self.title=@"Welcome";

self.navigationItem.leftBarButtonItem=self.editButtonItem;
}

テーブル ビューにナビゲーション バーが表示されません。助けてください

4

1 に答える 1

0

self.editButtonItemを作成していますか?このコードを使用してください:-

 [self.navigationItem setRightBarButtonItem:[[[UIBarButtonItem alloc]initWithTitle:@"Test" style:UIBarButtonItemStyleBordered target:self action:@selector(test:)]autorelaese]];
于 2012-08-22T05:33:13.577 に答える