@selector不起作用,跳出异常

来源:互联网 发布:崩坏3矩阵buff大全 编辑:程序博客网 时间:2024/06/05 12:05
  我控制器中有这样一段代码
- (void)viewDidLoad
{
    
        UIBarButtonItem *addButton = [[UIBarButtonItem alloc]initWithTitle:@"增加" style:UIBarButtonItemStyleBordered target:self action:@selector(addANote:)];
        self.navigationItem.rightBarButtonItem = addButton;
        [addButton release];
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

但运行的时候,一点击增加按钮就会出异常,断点断在movl 8(%edx), %edi,在代码中是有这个addANote的方法的,才学ios没多久,实在不知怎么回事,帮忙看看,谢谢
0 0