Quote:
Originally Posted by BrianSlick
Add a couple \n to the end of the message.
|
YOU ARE AWESOME!
Thank you.. that did it.. here is my code for anyone that is curious...
Code:
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Congratulations!",@"Congrats Title")
message:@"You scored in the top 5!\n\n"
delegate:self
cancelButtonTitle:NSLocalizedString(@"Cancel","@Cancel")
otherButtonTitles:NSLocalizedString(@"Ok",@"Ok"), nil];
myAlert.frame = CGRectMake( 0, 0, 300, 260);
UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(32.0, 65.0, 220.0, 25.0)];
[myTextField setBackgroundColor:[UIColor whiteColor]];
myTextField.placeholder = @"Your Name";
myTextField.borderStyle = UITextBorderStyleRoundedRect;
myTextField.backgroundColor = [UIColor blackColor];
myTextField.delegate = self;
myTextField.tag = 1;
[myAlert addSubview:myTextField];
CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 75.0);
[myAlert setTransform:myTransform];
[myAlert show];
[myAlert release];