ナビゲーションバーに次のようなボタンを追加しました。
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStylePlain target:self action:@selector(methodtocall:)];
self.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release];
ただし、これを押すと、InvalidArgumentExceptionが発生します。これはまったく新しいナビゲーションプロジェクトです。なぜ私がこの振る舞いをするのか誰か知っていますか?