2021-06-28 19:16:02 -04:00
|
|
|
#import "SettingsListSelectorViewController.h"
|
2019-04-08 20:27:54 -04:00
|
|
|
|
2021-06-28 19:16:02 -04:00
|
|
|
@implementation SettingsListSelectorViewController
|
2019-04-08 20:27:54 -04:00
|
|
|
|
2020-12-02 18:37:31 -05:00
|
|
|
- (void)viewDidAppear:(BOOL)animated
|
2019-04-08 20:27:54 -04:00
|
|
|
{
|
2021-06-28 19:16:02 -04:00
|
|
|
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:self.value inSection:0]];
|
2019-04-08 20:27:54 -04:00
|
|
|
if(cell != nil)
|
|
|
|
{
|
|
|
|
cell.accessoryType = UITableViewCellAccessoryCheckmark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-02 18:37:31 -05:00
|
|
|
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
|
2019-04-08 20:27:54 -04:00
|
|
|
{
|
2021-06-28 19:16:02 -04:00
|
|
|
self.value = [indexPath row];
|
2020-12-02 18:37:31 -05:00
|
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
|
|
[self performSegueWithIdentifier:@"returnToSettings" sender:self];
|
2019-04-08 20:27:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|