mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Update ColourOptionsController.m
This commit is contained in:
parent
6799753c3d
commit
7ec8272d5f
1 changed files with 4 additions and 4 deletions
|
|
@ -25,8 +25,8 @@
|
|||
UIColor *color = [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||
self.selectedColor = color;
|
||||
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad && UIInterfaceOrientationIsLandscape(self.interfaceOrientation)) {
|
||||
CGFloat scale = MIN(self.view.bounds.size.width / 1024, self.view.bounds.size.height / 768);
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
|
||||
CGFloat scale = MIN(self.view.bounds.size.width / 768, self.view.bounds.size.height / 1024);
|
||||
self.view.transform = CGAffineTransformMakeScale(scale, scale);
|
||||
}
|
||||
}
|
||||
|
|
@ -34,8 +34,8 @@
|
|||
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
|
||||
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
|
||||
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
|
||||
CGFloat scale = MIN(size.width / 1024, size.height / 768);
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad && UIInterfaceOrientationIsLandscape(self.interfaceOrientation)) {
|
||||
CGFloat scale = MIN(size.width / 768, size.height / 1024);
|
||||
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) {
|
||||
self.view.transform = CGAffineTransformMakeScale(scale, scale);
|
||||
} completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue