I had added a textfield in alertview which displayed properly in 3.2 but same code(coordinates) is creating problem in 4.2
The textfield fits in the space created by newline ("\n\n\n") in 3.2 but in 4.2 the space is not created when i add the textfield.... the Button1 comes jst below the alerttitle then the textfield overlapping some part of Button1 n followed by other buttons ....
If i don't add the textfield in alert view the space is created!!!!!!
Code:
txtFilenm = [[UITextField alloc]initWithFrame:CGRectMake(15, 70, 255, 30)];
txtFilenm.placeholder = @"Catalog Name";
txtFilenm.borderStyle = UITextBorderStyleRoundedRect;
txtFilenm.delegate = self;
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle: @"Enter catalog name"
message:[COLOR="Red"]@"\n\n\n"[/COLOR]
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Button1",@"Button2", nil];
alert.tag =11;
[COLOR="red"][alert addSubview:txtFilenm];[/COLOR]
[alert show];
[alert release];
The textfield fits in the space created by newline ("\n\n\n") in 3.2 but in 4.2 the space is not created when i add the textfield.... the Button1 comes jst below the alerttitle then the textfield overlapping some part of Button1 n followed by other buttons ....
If i don't add the textfield in alert view the space is created!!!!!!