UIAlertController循环引用问题

__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]);
     }]];

猜你喜欢

转载自blog.csdn.net/sunzhenglin2016/article/details/80134545