title: UIAlertView textfield keyboard type
body: <p>I having problem in displaying the textfield keyboard type in the alertview. I want to display numberpad keyboard but it not working.</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
  
  switch (alertView.tag) {
      case 1:
          if (buttonIndex == 0) {
              UITextField *textField = [alertView textFieldAtIndex:0];
              textField.keyboardType = UIKeyboardTypeNumberPad;
              [self performSelectorOnMainThread:@selector(ProcessDeleteTransaction:) withObject:textField.text waitUntilDone:NO];
          }
          break;
      case 2:
          [self.navigationController popToRootViewControllerAnimated:YES];
          break;
      default:
          break;
  }
  </code></pre>
  
  <p>}</p>