title: UIAlertView with Two TextFields and Two Buttons
body: <p><strong>Problem</strong> - I want a UIAlertView which contains a Title, two textfields with placeholders and two buttons.
  <strong>What I have done till now</strong> - I have used this code, I am getting the exact UIAlertView with all these I have mentioned but when the view is getting loaded is seems to appear in the bottom first and then comes into the middle of the view.</p>
  
  <pre><code>    -(void)showalert{
      disclaimerAgreedAlertView = [[UIAlertView alloc] initWithTitle:@"   " 
                                                             message:@"    " 
                                                            delegate:self 
                                                   cancelButtonTitle:@"Cancel" 
                                                   otherButtonTitles:@"Login", nil];
  
      userNameTextField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 15.0, 245.0, 25.0)];
      userNameTextField.delegate=self;
      [userNameTextField setBackgroundColor:[UIColor whiteColor]];
      [userNameTextField setKeyboardType:UIKeyboardTypeDefault];
      userNameTextField.placeholder=@"Username";
      userNameTextField.secureTextEntry=NO;
      [disclaimerAgreedAlertView addSubview:userNameTextField];
  
  
      passwordTextField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, 245.0, 25.0)];
      passwordTextField.delegate=self;
      [passwordTextField setBackgroundColor:[UIColor whiteColor]];
      [passwordTextField setKeyboardType:UIKeyboardTypeDefault];
      passwordTextField.placeholder=@"Password";
      passwordTextField.secureTextEntry=YES;
      [disclaimerAgreedAlertView addSubview:passwordTextField];
  
      disclaimerAgreedAlertView.tag=99;
  
      [disclaimerAgreedAlertView show];
      disclaimerAgreedAlertView.frame= CGRectMake(5, 400, 320, 160);
  
  }
  </code></pre>
  
  <p><strong>Then I tried some of the non documented api's which are giving me the result I want but I am afraid that it may cause rejection of my app.</strong></p>
  
  <p>So, any solutions to this?</p>