mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
(iOS) Fix crash with the cocoa state select control.
This commit is contained in:
parent
2445225526
commit
cd2e257f70
@ -1118,7 +1118,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
||||
result.textLabel.text = @"Slot";
|
||||
|
||||
UISegmentedControl* accessory = [[UISegmentedControl alloc] initWithItems:@[@"0", @"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9"]];
|
||||
[accessory addTarget:self action:@selector(changed:) forControlEvents:UIControlEventValueChanged];
|
||||
[accessory addTarget:[self class] action:@selector(changed:) forControlEvents:UIControlEventValueChanged];
|
||||
accessory.segmentedControlStyle = UISegmentedControlStyleBar;
|
||||
result.accessoryView = accessory;
|
||||
}
|
||||
@ -1128,7 +1128,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
||||
return result;
|
||||
}
|
||||
|
||||
- (void)changed:(UISegmentedControl*)sender
|
||||
+ (void)changed:(UISegmentedControl*)sender
|
||||
{
|
||||
g_extern.state_slot = sender.selectedSegmentIndex;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user