mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:23:58 -04:00 
			
		
		
		
	Updated iPhone Layout Option
				
					
				
			This commit is contained in:
		| @@ -654,8 +654,8 @@ BOOL isTabSelected = NO; | |||||||
|  |  | ||||||
| %group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn | %group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn | ||||||
| %hook UIDevice | %hook UIDevice | ||||||
| - (long long)userInterfaceIdiom { | - (UIUserInterfaceIdiom)userInterfaceIdiom { | ||||||
|     return NO; |     return UIUserInterfaceIdiomPhone; | ||||||
| } | } | ||||||
| %end | %end | ||||||
| %hook UIStatusBarStyleAttributes | %hook UIStatusBarStyleAttributes | ||||||
| @@ -665,12 +665,20 @@ BOOL isTabSelected = NO; | |||||||
| %end | %end | ||||||
| %hook UIKBTree | %hook UIKBTree | ||||||
| - (long long)nativeIdiom { | - (long long)nativeIdiom { | ||||||
|  |     if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) { | ||||||
|         return NO; |         return NO; | ||||||
|  |     } else { | ||||||
|  |         return YES; | ||||||
|  |     } | ||||||
| }  | }  | ||||||
| %end | %end | ||||||
| %hook UIKBRenderer | %hook UIKBRenderer | ||||||
| - (long long)assetIdiom { | - (long long)assetIdiom { | ||||||
|  |     if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) { | ||||||
|         return NO; |         return NO; | ||||||
|  |     } else { | ||||||
|  |         return YES; | ||||||
|  |     } | ||||||
| }  | }  | ||||||
| %end | %end | ||||||
| %end | %end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 arichornlover
					arichornlover