Below is an example on how to create a UIAlterView with a single Text Box, if you want two text boxes then you will need to adjust and add what you need to make both fit. Also, I found it easier to make the TextBox an ivar, this way I can use the self delegate to grab the text that was entered after the Update button was pressed, this should get you on the right path:
Code:
UIAlertView *optionAlert = [[UIAlertView alloc] initWithTitle:@"Update Monthly Goal" message:@"this message gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Update", nil];
optionText = [[UITextField alloc] initWithFrame:CGRectMake(12, 45, 260, 25)];
[optionText setBackgroundColor:[UIColor whiteColor]];
NSString *placeholder = [NSString stringWithFormat:@"$%@",MTDGoal];
optionText.placeholder = placeholder;
optionText.keyboardType = UIKeyboardTypeNumberPad;
optionText.keyboardAppearance = UIKeyboardAppearanceAlert;
optionText.tag = 10;
optionText.delegate = self;
optionAlert.tag = 25;
[optionAlert addSubview:optionText];
[optionAlert show];
[optionAlert release];
I'm also using the alert tag to determine which UIAlertView is present since this screen that I pulled this from has 2 other Alerts that show up depending on the WebService that is sending data (such as a Timeout Message from the DB).