0
- (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