mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Update RootOptionsController.m
This commit is contained in:
parent
1aa0a9cfb8
commit
f22d9d3257
1 changed files with 0 additions and 13 deletions
|
|
@ -164,19 +164,6 @@
|
|||
|
||||
@implementation RootOptionsController (Privates)
|
||||
|
||||
- (void)showAppIconOptions {
|
||||
if (@available(iOS 15.0, *)) {
|
||||
AppIconOptionsController *appIconOptionsController = [[AppIconOptionsController alloc] init];
|
||||
UINavigationController *appIconOptionsNavController = [[UINavigationController alloc] initWithRootViewController:appIconOptionsController];
|
||||
[self presentViewController:appIconOptionsNavController animated:YES completion:nil];
|
||||
} else {
|
||||
NSString *systemVersion = [[UIDevice currentDevice] systemVersion];
|
||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Incompatible" message:[NSString stringWithFormat:@"Changing app icons is only available on iOS 15 and later.\nYour Device is currently using iOS %@.", systemVersion] preferredStyle:UIAlertControllerStyleAlert];
|
||||
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)done {
|
||||
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue