__weak typeof (alert) weekAlert=alert;
[alert addAction:[UIAlertAction actionWithTitle:@"submit" style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
NSLog(@"click submit button");
NSLog(@"first textField‘s text is %@,the second textField‘s text is %@",[weekAlert.textFields.firstObject text],[weekAlert.textFields.lastObject text]);
}]];
UIAlertController循环引用问题
最新推荐文章于 2019-01-11 14:02:16 发布