navigationcontroller后退按钮动作

问题描述:

我对iphone新的,现在我想实现只是一个返回按钮的动作,但我收到的信号SIGABRT与消息:back2FirstView not found(return type defaults to id). 在头文件中我有:- (void) back2FirstView;并在实施。 m是:navigationcontroller后退按钮动作

- (void)back2FirstView 
{ 
    [navigationController popViewControllerAnimated:YES]; 
} 

和后退按钮的操作:

-(IBAction)RetourButtonPressed:(id)sender{ 
    NSLog(@"BTN Retour"); 
    [boiteAOutilsViewController back2FirstView]; 
} 

问题出在哪里?请帮助...

+0

向我们展示您在Back按钮上定义动作的位置项目 –

+0

我编辑了我的问题 – Gabrielle

+0

您如何声明boiteAOutilsViewController?它是一个实例名称还是类名称? – Saran

曾与加布里埃尔聊天,问题被注释掉back2FirstView呼叫并在

使用[self.navigationController popViewControllerAnimated:YES];解决 - (IBAction为)RetourButtonPressed:(ID)发送

操作。