Play-/Source/ui_ios/SettingsListSelectorViewController.mm
2021-06-28 19:16:02 -04:00

21 lines
600 B
Text

#import "SettingsListSelectorViewController.h"
@implementation SettingsListSelectorViewController
- (void)viewDidAppear:(BOOL)animated
{
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:self.value inSection:0]];
if(cell != nil)
{
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
}
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
{
self.value = [indexPath row];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[self performSegueWithIdentifier:@"returnToSettings" sender:self];
}
@end