mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-03 06:26:09 +00:00
changed dialog to UIAlertController since UIAlertView is deprecated in iOS 8
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user