title: textFieldShouldBeginEditing is called repeatedly only in iPad
body: <p>I have two textfield(name and phone#).Once user is registered, user should not able to edit phone number textfield. I am checking the condition when user click on phone number textfield. if registered I am creating alert saying that "Cannot edit". When i click on "ok" i dismiss the keypad. I am using the following code to do so</p>
  
  <pre><code>-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField
  {
   if(registered)
   {
     dismissAlert = [[UIAlertView alloc]initWithTitle:@"cannot edit" message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
     [dismissAlert show];
   }
  }
  
  if([title isEqualToString:@"OK"])
  {
     [self.view endEditing:YES];
     [self.PhoneNumber resignFirstResponder];
     dismissAlert = nil;
  }
  </code></pre>
  
  <p>But textFieldShouldBeginEditing called multiple times. It happens only in iPad.</p>