mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-11 08:20:37 +00:00
Update ColourOptionsController2.m
This commit is contained in:
parent
f855e63f8e
commit
47da969286
1 changed files with 9 additions and 0 deletions
|
|
@ -24,10 +24,19 @@
|
||||||
[lcmUnarchiver setRequiresSecureCoding:NO];
|
[lcmUnarchiver setRequiresSecureCoding:NO];
|
||||||
UIColor *color = [lcmUnarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
UIColor *color = [lcmUnarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||||
self.selectedColor = color;
|
self.selectedColor = color;
|
||||||
|
|
||||||
|
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad && UIInterfaceOrientationIsLandscape(self.interfaceOrientation)) {
|
||||||
|
CGRect screenRect = [[UIScreen mainScreen] bounds];
|
||||||
|
CGFloat screenWidth = screenRect.size.width;
|
||||||
|
if (screenWidth > 1024) {
|
||||||
|
self.view.transform = CGAffineTransformMakeScale(0.7, 0.7);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
|
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
|
||||||
[super traitCollectionDidChange:previousTraitCollection];
|
[super traitCollectionDidChange:previousTraitCollection];
|
||||||
|
[self loadView];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue