I have an alertview with a textfield inside so that I can have a user put in a name to save a pdf. When the alertview appears, it is pretty high, on top of the status bar. When the textfield is selected, it moves down to an optimal range. I would like it to just stay at that range from the beginning. Any suggestions?
Code:
UIAlertView *alert2 = [[UIAlertView alloc] initWithTitle:@"Enter A File Name Here" message:@"this gets covered!"
delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"OK!", nil];
alertTextField = [[UITextField alloc] initWithFrame:CGRectMake(12, 45, 260, 25)];
CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0, 60);
[alert2 setTransform:myTransform];
[alertTextField setBackgroundColor:[UIColor whiteColor]];
[alert2 addSubview:alertTextField];
[alert2 setTag:2];
[alert2 show];
[alert2 release];
[alertTextField release];