当我按nextButton,这是UIBarButton。然后关联的动作不执行。按钮操作没有响应iphone
UIButton *nextButton1=[UIButton buttonWithType:UIButtonTypeCustom];
[nextButton1 setBackgroundImage:[UIImage imageNamed:@"next.png"] forState:UIControlStateNormal];
[nextButton1 addTarget:self action:@selector(goToItems) forControlEvents:UIControlEventTouchUpOutside];
[nextButton1 sizeToFit];
UIBarButtonItem *nextButton=[[UIBarButtonItem alloc]initWithCustomView:nextButton1];
self.navigationItem.rightBarButtonItem=nextButton;
哦,感谢它是由错误 – 2012-07-06 10:38:28
@IdreesAshraf非常欢迎:)也许你可以接受的答案?谢谢。 – janusbalatbat 2012-07-06 10:40:05