Added bundle? (AppIconOptionsController.m)

This commit is contained in:
arichornlover 2024-05-01 19:07:06 -05:00 committed by GitHub
parent 1ab798f1eb
commit 1bfa0a1bbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,8 @@
[self.view addSubview:self.tableView];
self.backButton = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *backImage = [UIImage imageNamed:@"Back.png" inBundle:[[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"] compatibleWithTraitCollection:nil];
NSBundle *bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"]];
UIImage *backImage = [UIImage imageNamed:@"Back.png" inBundle:bundle compatibleWithTraitCollection:nil];
[self.backButton setImage:backImage forState:UIControlStateNormal];
[self.backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
[self.backButton setFrame:CGRectMake(0, 0, 24, 24)];