title: textFieldIndex (0) is outside of the bounds of the array of text fields
body: <p>I have searched far and wide for an answer but I haven't found anything close.</p>
  
  <p>The following code:</p>
  
  <pre><code>UIAlertView *welcome = [[UIAlertView alloc] initWithTitle:@"Welcome"
                                                    message:@"Please Enter Your Credentials to Proceed"
                                                   delegate:self
                                          cancelButtonTitle:@"OK"
                                          otherButtonTitles:nil];
  [welcome show];
  </code></pre>
  
  <p>Gives the following <strong>error</strong>:</p>
  
  <blockquote>
    <p>textFieldIndex (0) is outside of the bounds of the array of text fields</p>
  </blockquote>
  
  <p>If I change the <code>alertView</code> type to <code>UIAlertViewStylePlainTextInput</code> then it works and I cant figure out why!</p>
  
  <p>Any help would be appreciated.</p>