参见英文答案 >
Taking Text From a UIAlertView4个
UIAlertView *alertViewChangeName=[[UIAlertView alloc]initWithTitle:@"Change Name" message:@"What is your teacher's name?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil]; alertViewChangeName.alertViewStyle=UIAlertViewStylePlainTextInput; [alertViewChangeName show];
我只是想从文本框中检索输入并将其放在UILabel或NSString中以便以后使用和/或操作.