/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UIAlertView* myAlert = [[UIAlertView alloc] initWithTitle:@"Enter Name" message:@"Enter Name\n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil]; [myAlert addTextFieldWithValue:@"" label:@"name-age"]; myTextField = [myAlert textFieldAtIndex:0]; myTextField.clearButtonMode = UITextFieldViewModeWhileEditing; myTextField.keyboardType = UIKeyboardTypeAlphabet; myTextField.keyboardAppearance = UIKeyboardAppearanceAlert; myTextField.autocapitalizationType = UITextAutocapitalizationTypeWords; myTextField.autocorrectionType = UITextAutocapitalizationTypeNone; myTextField.textAlignment = UITextAlignmentCenter; [myAlert show]; [myAlert release];