|
@@ -937,6 +937,21 @@ done:
|
|
|
return md5Str;
|
|
return md5Str;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
++ (void)ra_showAlertTitle:(NSString *)title message:(NSString *)msg withViewController:(UIViewController *)vc {
|
|
|
|
|
+
|
|
|
|
|
+ if (vc) {
|
|
|
|
|
+ UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:title message:msg preferredStyle:UIAlertControllerStyleAlert];
|
|
|
|
|
+ UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
+
|
|
|
|
|
+ }];
|
|
|
|
|
+
|
|
|
|
|
+ [alertVC addAction:okAction];
|
|
|
|
|
+
|
|
|
|
|
+ [vc presentViewController:alertVC animated:YES completion:nil];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
|