@selector不起作用,跳出异常
我控制器中有这样一段代码
- (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没多久,实在不知怎么回事,帮忙看看,谢谢