在一个页面delegate冲突问题,怎么解决
1个回答
展开全部
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
UIActionSheet *action = [[UIActionSheet alloc]initWithTitle:@"aa" delegate:self cancelButtonTitle:@"bb" destructiveButtonTitle:@"cc" otherButtonTitles:@"dd",nil];
action.tag = 2;
[action showInView:self.view];
[action release];
}
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if(actionSheet.tag == 2)
{
int i = 0;
i++;
}
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询