Updated iPhone Layout Option
This commit is contained in:
parent
6b78aba609
commit
eb8e4cb073
1 changed files with 13 additions and 5 deletions
|
|
@ -654,9 +654,9 @@ BOOL isTabSelected = NO;
|
|||
|
||||
%group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn
|
||||
%hook UIDevice
|
||||
- (long long)userInterfaceIdiom {
|
||||
return NO;
|
||||
}
|
||||
- (UIUserInterfaceIdiom)userInterfaceIdiom {
|
||||
return UIUserInterfaceIdiomPhone;
|
||||
}
|
||||
%end
|
||||
%hook UIStatusBarStyleAttributes
|
||||
- (long long)idiom {
|
||||
|
|
@ -665,12 +665,20 @@ BOOL isTabSelected = NO;
|
|||
%end
|
||||
%hook UIKBTree
|
||||
- (long long)nativeIdiom {
|
||||
return NO;
|
||||
if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
|
||||
return NO;
|
||||
} else {
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
%end
|
||||
%hook UIKBRenderer
|
||||
- (long long)assetIdiom {
|
||||
return NO;
|
||||
if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
|
||||
return NO;
|
||||
} else {
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue