UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"请输入起点:"
message:@"\n\n"
delegate:nil
cancelButtonTitle:@"取消"
otherButtonTitles:@"确定", nil];
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(27.0, 60.0, 230.0, 25.0)];
[textField setBackgroundColor:[UIColor whiteColor]];
[textField setPlaceholder:@"起点"];
[prompt addSubview:textField];
[textField release];
[prompt setTransform:CGAffineTransformMakeTranslation(0.0, -100.0)]; //可以调整弹出框在屏幕上的位置
[prompt show];
[prompt release];