mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-14 19:40:52 +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];
|
[self.view addSubview:self.tableView];
|
||||||
|
|
||||||
UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
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)];
|
if (!backImage) {
|
||||||
self.navigationItem.leftBarButtonItem = backButton;
|
backButton.image = [UIImage systemImageNamed:@"chevron.backward"];
|
||||||
|
} else {
|
||||||
|
backButton.image = backImage;
|
||||||
|
}
|
||||||
|
|
||||||
UIBarButtonItem *resetButton = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStylePlain target:self action:@selector(resetIcon)];
|
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];
|
[resetButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:17]} forState:UIControlStateNormal];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue