- (void)viewDidLoad
{
[super viewDidLoad];
ac = [[AddContacts alloc]init];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:ac];
[self.view addSubview:navigationController.view];
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Show" style:UIBarButtonItemStylePlain target:self action:@selector(refreshPropertyList:)];
self.navigationController.navigationItem.rightBarButtonItem = anotherButton;
}
なぜボタンがナビゲーションコントローラに追加されていませんか?ナビゲーションコントローラにボタンが追加されていません
私はあなたに言ったようにしましたが、新しい問題はボタンをクリックしてSIGABRTの問題が発生したときです – Pamy
'refreshPropertyList:'メソッドがこのファイルまたは 'AddContacts'クラスに存在しますか? –
ありがとう。 – Pamy