How would I limit the amount of text, that can be entered in a text field in a UIAlertView with my existing code?
I am new to iOS app development.
My code is as following:
if(indexPath.row== 1){
[tableView deselectRowAtIndexPath:indexPath animated:YES];
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"Enter Novena Day"
message:@"Please enter the day of Novena:"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Ok", nil];
[alertView setAlertViewStyle:UIAlertViewStylePlainTextInput];
UITextField *textField = [alertView textFieldAtIndex:0];
textField.keyboardType = UIKeyboardTypeNumberPad;
[alertView show];
}