Alert
Alert copied to clipboard
对cancel按钮事情处理的意见
if (hasCancelBtn == YES ){ [button addTarget:self action:@selector(cancalClick:) forControlEvents:UIControlEventTouchUpInside]; }else{ [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside]; } 处理的事情,只要有cancel的按钮,所有的按钮都执行的是cancelclick事件,导致了,点击了不是cancel的按钮都会执行cancel事件