0

ビューをビューコントローラにプッシュすると

-(void)tableView:(UITableView *)tableView
        didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{{
  AnotherViewController * anotherViewController =
      [[AnotherViewController alloc] initWithNibName:@ "AnotherView" bundle:nil];
  [self.navigationController pushViewController:anotherViewControllerアニメーション:YES];
}

NavigationControllerの右ボタンアイテムが消えます。

self.navigationController.rightBarButtonItemiPhoneに付属の「Notes」アプリケーションのようにSTAYTHEREを作成する方法はありますか?

4

2 に答える 2

0

文書化されていないクラスを使用しないとできないと思います。ただし、rightBarButtonItem同じように見えるアイテムにプロパティを設定すると、大きな違いはないはずです。

于 2009-11-24T04:39:03.930 に答える
0

あなたはそれを行うことができます

self.anotherViewController.navigationItem.rightBarButtonItem = self.parentViewController.navigationItem.rightBarButtonItem;

ChildViewController をプッシュした後

于 2013-02-20T01:29:57.257 に答える