导航控制器后退按钮操作
我是 iPhone 新手,现在我尝试仅实现后退按钮操作,但我收到信号 SIGABRT
和消息:back2FirstView not found(返回类型默认为 id)。
在头文件中,我有: - (void) back2FirstView;
,.m 中的实现是:
- (void)back2FirstView
{
[navigationController popViewControllerAnimated:YES];
}
后退按钮的操作:
-(IBAction)RetourButtonPressed:(id)sender{
NSLog(@"BTN Retour");
[boiteAOutilsViewController back2FirstView];
}
问题出在哪里?请帮忙...
I'm new on iphone and now I'm trying to implement just a back button action, but I receive the signal SIGABRT
with message : back2FirstView not found(return type defaults to id).
In header file I have : - (void) back2FirstView;
and the implementation in .m is :
- (void)back2FirstView
{
[navigationController popViewControllerAnimated:YES];
}
and the action for back button :
-(IBAction)RetourButtonPressed:(id)sender{
NSLog(@"BTN Retour");
[boiteAOutilsViewController back2FirstView];
}
Where is the problem? Please help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与 Gabrielle 聊天,通过注释掉 back2FirstView 调用并使用
[self.navigationController popViewControllerAnimated:YES]; 解决了问题
操作。
Had a chat with Gabrielle and the problem was solved by commenting out the back2FirstView call and using
[self.navigationController popViewControllerAnimated:YES];
in theaction.