是否有一种方法可以覆盖tableView中的UIBarButtons功能?覆盖UIBarButtons在tableView中的功能
- (IBAction)addNewBook:(UIBarButtonItem *)sender {
[self performSegueWithIdentifier:@"addNewBook" sender:self];
}
- (IBAction)myBooks:(UIBarButtonItem *)sender {
[self performSegueWithIdentifier:@"myBooks" sender:self];
}
我这两个UIBarButtons
取得了新的动作(查看表),并尝试添加塞格斯去新viewControllers当按下这些按钮,但这些UIBarButtons
已经预先确定的功能 - 对一个人的功能添加,左边是删除。有没有办法来重写这些函数 - 所以我可以得到我想要发生的segues,而不是删除和添加列表中的东西?
你想执行这两个功能吗?预定和新的?我的意思是在两种不同的情况下 – 2013-03-12 03:37:29