UIAlertController *alertController = [UIAlertControlleralertControllerWithTitle:@"网络异常重新加载"message:nilpreferredStyle:(UIAlertControllerStyleAlert)];
UIAlertAction *okAction = [UIAlertActionactionWithTitle:@"确定"style:(UIAlertActionStyleDefault)handler:^(UIAlertAction *_Nonnull action) {
}];
UIAlertAction *cancelAction = [UIAlertActionactionWithTitle:@"取消"style:(UIAlertActionStyleCancel)handler:^(UIAlertAction *_Nonnull action) {
}];
[alertController addAction:okAction];
[alertController addAction:cancelAction];
[selfpresentViewController:alertController animated:YEScompletion:nil];