mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
added placeholder arrow icon (AppIconOptionsController.m)
This commit is contained in:
parent
c8f16a2ec8
commit
941a8a79c6
1 changed files with 5 additions and 2 deletions
|
|
@ -29,8 +29,11 @@
|
|||
[self.view addSubview:self.tableView];
|
||||
|
||||
UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
||||
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:backImage style:UIBarButtonItemStylePlain target:self action:@selector(back)];
|
||||
self.navigationItem.leftBarButtonItem = backButton;
|
||||
if (!backImage) {
|
||||
backButton.image = [UIImage systemImageNamed:@"chevron.backward"];
|
||||
} else {
|
||||
backButton.image = backImage;
|
||||
}
|
||||
|
||||
UIBarButtonItem *resetButton = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStylePlain target:self action:@selector(resetIcon)];
|
||||
[resetButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:17]} forState:UIControlStateNormal];
|
||||
|
|
|
|||
Loading…
Reference in a new issue