mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 06:07:56 +03:00
22 lines
641 B
Text
22 lines
641 B
Text
#import "ResolutionFactorSelectorViewController.h"
|
|
|
|
@implementation ResolutionFactorSelectorViewController
|
|
|
|
- (void)viewDidAppear:(BOOL)animated
|
|
{
|
|
int index = log2(self.factor);
|
|
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]];
|
|
if(cell != nil)
|
|
{
|
|
cell.accessoryType = UITableViewCellAccessoryCheckmark;
|
|
}
|
|
}
|
|
|
|
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
|
|
{
|
|
self.factor = 1 << [indexPath row];
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
[self performSegueWithIdentifier:@"returnToSettings" sender:self];
|
|
}
|
|
|
|
@end
|