__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循环引用问题
猜你喜欢
转载自blog.csdn.net/sunzhenglin2016/article/details/80134545
今日推荐
周排行