mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 20:12:03 +00:00
Update AppIconOptionsController (Added Close Button)
This is now UITableView so it’s now necessary in order to close the menu.
This commit is contained in:
parent
f2a407ab5b
commit
1261286913
1 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,10 @@
|
||||||
self.tableView.dataSource = self;
|
self.tableView.dataSource = self;
|
||||||
self.tableView.delegate = self;
|
self.tableView.delegate = self;
|
||||||
[self.view addSubview:self.tableView];
|
[self.view addSubview:self.tableView];
|
||||||
|
|
||||||
|
UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:self action:@selector(close)];
|
||||||
|
self.navigationItem.leftBarButtonItem = closeButton;
|
||||||
|
|
||||||
UIButton *defaultButton = [UIButton buttonWithType:UIButtonTypeSystem];
|
UIButton *defaultButton = [UIButton buttonWithType:UIButtonTypeSystem];
|
||||||
defaultButton.frame = CGRectMake(20, 100, 100, 40);
|
defaultButton.frame = CGRectMake(20, 100, 100, 40);
|
||||||
[defaultButton setTitle:@"Default" forState:UIControlStateNormal];
|
[defaultButton setTitle:@"Default" forState:UIControlStateNormal];
|
||||||
|
|
@ -110,4 +113,8 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)close {
|
||||||
|
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue