Declare Stuff (RootOptionsController.m)

This commit is contained in:
arichornlover 2024-05-13 20:20:44 -05:00 committed by GitHub
parent 1fa1ae9455
commit bd47cce0d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];
}