uitextfield - Add Text into Alertview textfield iOS -


when alert view shows want have existing text within textfield. code, must add?

        uialertview* dialog = [[uialertview alloc] initwithtitle:@"title" message:@"message" delegate:self cancelbuttontitle:@"cancel" otherbuttontitles:@"add", nil];         [dialog setalertviewstyle:uialertviewstyleplaintextinput];          // change keyboard type         [[dialog textfieldatindex:0] setkeyboardtype:uikeyboardtypedefault];          [dialog show]; 

uialertview* dialog = [[uialertview alloc] initwithtitle:@"title" message:@"message" delegate:self cancelbuttontitle:@"cancel" otherbuttontitles:@"add", nil]; [dialog setalertviewstyle:uialertviewstyleplaintextinput]; [[dialog textfieldatindex:0] setkeyboardtype:uikeyboardtypedefault];  [[dialog textfieldatindex:0]settext:@"your string here"];  [dialog show]; 

Comments

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -