Avoid crash in settings menu for iOS < 13.0

This commit is contained in:
QuentinArguillere 2022-06-28 17:18:10 +02:00
parent b75147cfd9
commit 3507b355ed

View file

@ -124,7 +124,11 @@
- (void)deselectCell:(UITableViewCell *)cell {
[cell setAccessoryType:UITableViewCellAccessoryNone];
[[cell textLabel] setTextColor:[UIColor labelColor]];
if (@available(iOS 13.0, *)) {
[[cell textLabel] setTextColor:[UIColor labelColor]];
} else {
[[cell textLabel] setTextColor:[UIColor darkGrayColor]];
}
}
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {