【发布时间】:2017-02-18 15:20:47
【问题描述】:
我有一个在 viewDidLoad 中定义的右栏按钮项:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
UIButton *helpButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:helpButton ];
}
我已经链接了条形按钮项目并使用标识符执行了 segue,但它没有推送视图。为什么会这样?
- (IBAction)btnShowHelp:(id)sender {
[self performSegueWithIdentifier:@"showHelp" sender:self];
}
【问题讨论】:
标签: ios objective-c segue