| Index: webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
|
| diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
|
| index 75d454a44c3a1372dc4761ade72cbb9f4ca78b7c..dca48b60c3d50eb201c79242512b7b9d391badae 100644
|
| --- a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
|
| +++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
|
| @@ -255,12 +255,18 @@ static NSString *const loopbackLaunchProcessArgument = @"loopback";
|
| }
|
|
|
| - (void)showAlertWithMessage:(NSString*)message {
|
| - UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil
|
| - message:message
|
| - delegate:nil
|
| - cancelButtonTitle:@"OK"
|
| - otherButtonTitles:nil];
|
| - [alertView show];
|
| + UIAlertController *alert =
|
| + [UIAlertController alertControllerWithTitle:nil
|
| + message:message
|
| + preferredStyle:UIAlertControllerStyleAlert];
|
| +
|
| + UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK"
|
| + style:UIAlertActionStyleDefault
|
| + handler:^(UIAlertAction *action){
|
| + }];
|
| +
|
| + [alert addAction:defaultAction];
|
| + [self presentViewController:alert animated:YES completion:nil];
|
| }
|
|
|
| @end
|
|
|