From 4b4aec0006b479842ea553b08db71e24223e9701 Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Sat, 10 Jan 2015 11:55:12 -0500 Subject: [PATCH] changed dialog to UIAlertController since UIAlertView is deprecated in iOS 8 --- Limelight/ViewControllers/SettingsViewController.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index df52b9e..20b7be4 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -61,12 +61,9 @@ static NSString* bitrateFormat = @"Bitrate: %d Mbps"; height = [UIScreen mainScreen].bounds.size.height * [UIScreen mainScreen].scale; width = [UIScreen mainScreen].bounds.size.width * [UIScreen mainScreen].scale; - UIAlertView *alertResolution = [[UIAlertView alloc] initWithTitle:@"Native resolution" - message:[NSString stringWithFormat:@"You must select the following resolution in the game settings : %lix%li", (long)width, (long)height] - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - [alertResolution show]; + UIAlertController *alertResolution = [UIAlertController alertControllerWithTitle:@"Native resolution" message:[NSString stringWithFormat:@"You must select the following resolution in the game settings: %lix%li", (long)width, (long)height] preferredStyle:UIAlertControllerStyleAlert]; + [alertResolution addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleCancel handler:nil]]; + [self presentViewController:alertResolution animated:YES completion:nil]; } else {