2

I just found a strange problem, when I try to use three buttons in an UIAlertView, the view is displayed weirdly, as you can see in this screenshot :

UIAlertView

Here is the code :

UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Login" message:nil delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Login",@"Forget Password", nil];

[alert setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput];
UITextField *place=[alert textFieldAtIndex:0];
place.placeholder=@"Email";
[alert show];
[alert release];

Please suggest me how I can correct this. Thanks.

rdurand
  • 7,342
  • 3
  • 39
  • 72
Mohit Manhas
  • 3,471
  • 1
  • 17
  • 21

0 Answers0