mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
cc0651b9d5
commit
3f06713815
1 changed files with 4 additions and 8 deletions
|
|
@ -100,14 +100,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||
}
|
||||
%new;
|
||||
- (void)settingsAction {
|
||||
YTSettingsViewController *settingsVC = [(YTSettingsViewController *)[self settingsView] settingsView];
|
||||
if (settingsVC) {
|
||||
UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
|
||||
UINavigationController *navController = (UINavigationController *)rootVC;
|
||||
[navController pushViewController:settingsVC animated:YES];
|
||||
} else {
|
||||
NSLog(@"YTSettingsViewController settingsView not found.");
|
||||
}
|
||||
YTSettingsViewController *settingsVC = [YTSettingsViewController new];
|
||||
UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
|
||||
UINavigationController *navController = (UINavigationController *)rootVC;
|
||||
[navController pushViewController:settingsVC animated:YES];
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue