Update RootOptionsController.m

This commit is contained in:
aricloverGitHub (INACTIVE) 2024-12-04 17:50:16 -06:00 committed by GitHub
parent 13eaf8fcc5
commit f03f5a2e02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,14 +35,12 @@
[self.backButton setTintColor:[UIColor systemBlueColor]];
[self.backButton setImage:backImage forState:UIControlStateNormal];
[self.backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
[self.backButton setFrame:CGRectMake(0, 0, 24, 24)];
UIBarButtonItem *customBackButton = [[UIBarButtonItem alloc] initWithCustomView:self.backButton];
self.navigationItem.leftBarButtonItem = customBackButton;
}
- (void)setupTableView {
UITableViewStyle style = UITableViewStyleInsetGrouped;
self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:style];
self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleInsetGrouped];
self.tableView.translatesAutoresizingMaskIntoConstraints = NO;
self.tableView.dataSource = self;
self.tableView.delegate = self;
@ -78,8 +76,8 @@
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
[self configureCell:cell atIndexPath:indexPath];
}
[self configureCell:cell atIndexPath:indexPath];
return cell;
}