在UIAlertVIew 中 添加 UITextField
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"添加" message:nil delegate:self cancelButtonTitle:@"确定" otherButtonTitles: @"取消",nil]; textField = [[UITextField alloc] initWithFrame:CGRectMake(12, 45, 260, 25)]; textField.backgroundColor = [UIColor whiteColor]; [alert addSubview:textField]; CGAffineTransform transfrom = CGAffineTransformMakeTranslation(0, 30); //实现对控件位置的控制 [alert setTransform:transfrom]; [alert show]; [alert release];?