mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 06:42:10 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
f60bc5f283
commit
36bcad3950
1 changed files with 3 additions and 4 deletions
|
|
@ -100,14 +100,13 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||
}
|
||||
%new;
|
||||
- (void)settingsAction {
|
||||
Class YTSettingsViewControllerClass = objc_getClass("YTSettingsViewController");
|
||||
if (YTSettingsViewControllerClass) {
|
||||
YTSettingsViewController *settingsVC = [[YTSettingsViewControllerClass alloc] init];
|
||||
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 class not found.");
|
||||
NSLog(@"YTSettingsViewController settingsView not found.");
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue