mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
Declare Stuff (RootOptionsController.m)
This commit is contained in:
parent
1fa1ae9455
commit
bd47cce0d4
1 changed files with 9 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
@interface RootOptionsController ()
|
||||
|
||||
@property (strong, nonatomic) UIButton *backButton;
|
||||
@property (assign, nonatomic) UIUserInterfaceStyle pageStyle;
|
||||
|
||||
@end
|
||||
|
|
@ -177,6 +178,14 @@
|
|||
|
||||
@implementation RootOptionsController (Privates)
|
||||
|
||||
- (UIImage *)resizeImage:(UIImage *)image newSize:(CGSize)newSize {
|
||||
UIGraphicsBeginImageContextWithOptions(newSize, NO, [UIScreen mainScreen].scale);
|
||||
[image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
|
||||
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext();
|
||||
return newImage;
|
||||
}
|
||||
|
||||
- (void)back {
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue