mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
(iOS) Make wasSelectedonTableView more robust
This commit is contained in:
parent
a094aaf302
commit
7baaf963c9
@ -255,11 +255,17 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
||||
- (void)wasSelectedOnTableView:(UITableView*)tableView ofController:(UIViewController*)controller
|
||||
{
|
||||
char buffer[256];
|
||||
UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:BOXSTRING("Enter new value") message:BOXSTRING(self.setting->short_description) delegate:self
|
||||
cancelButtonTitle:BOXSTRING("Cancel") otherButtonTitles:BOXSTRING("OK"), nil];
|
||||
NSString *desc = BOXSTRING("N/A");
|
||||
UIAlertView *alertView;
|
||||
UITextField *field;
|
||||
|
||||
if (self.setting && self.setting->short_description)
|
||||
desc = BOXSTRING(self.setting->short_description);
|
||||
|
||||
alertView = [[UIAlertView alloc] initWithTitle:BOXSTRING("Enter new value") message:desc delegate:self cancelButtonTitle:BOXSTRING("Cancel") otherButtonTitles:BOXSTRING("OK"), nil];
|
||||
alertView.alertViewStyle = UIAlertViewStylePlainTextInput;
|
||||
|
||||
UITextField* field = [alertView textFieldAtIndex:0];
|
||||
field = [alertView textFieldAtIndex:0];
|
||||
|
||||
field.delegate = self.formatter;
|
||||
field.placeholder = BOXSTRING(setting_data_get_string_representation(self.setting, buffer, sizeof(buffer)));
|
||||
|
Loading…
Reference in New Issue
Block a user