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