【发布时间】:2013-03-13 14:51:56
【问题描述】:
我在 tableviewcell 内有一个按钮,它位于 tableview 内(显然),而 tableview 位于导航控制器内的 viewController 内
UINavigationCont --> ViewController1 --> UITableView --> UITableViewCell --> UIButton -->(从这个按钮的IBAction启动一个新的控制器)
我怎样才能做到这一点? 谢谢
- (IBAction)addButtonPressed:(UIButton *)sender {
ViewController1 *detailViewController = [[ViewController1 alloc]init];
[self.superview.delegate presentPopupViewController:detailViewController animationType:MJPopupViewAnimationFade];
}
【问题讨论】:
-
您使用的是笔尖还是情节提要?
-
您为什么要使用自己的按钮来执行此操作,而不是仅使用单元格选择的详细控制器或使用可以添加到单元格的附件按钮?这是执行此操作的“正常”方式,使用 didSelectRowAtIndexPath 或 tableView:accessoryButtonTappedForRowWithIndexPath:
标签: ios uitableview uinavigationcontroller uibutton