this is what i get when using this code:
[[Director sharedDirector] pause];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Rank on ScoreBoard: %d",positionOnBoard] message:@"" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"Submit", nil];
nameField = [[UITextField alloc] initWithFrame:CGRectMake(12, 25, 260, 21)];
[nameField setBackgroundColor:[UIColor whiteColor]];
[nameField setPlaceholder:@"Your Name Here!"];
[alert addSubview:nameField];
[alert show];
[nameField becomeFirstResponder];
[alert release];
as you see, it's messed up. it only happened when ugrading my project to iOS 4.0.