(IOS)显示原生弹框
2018-12-26 本文已影响0人
rightmost
+ (void)showInfo:(NSString*)info VC:(UIViewController*)VC
{
UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"温馨提示" message:info preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:nil];
[alertVCaddAction:okAction];
[VCpresentViewController:alertVC animated:YES completion:nil];
}