UIAlertView *alert = [[UIAlertViewalloc] initWithTitle:@"修改昵称"message:nildelegate:selfcancelButtonTitle:@"取消"otherButtonTitles:@"确定",nil];
alert.alertViewStyle =UIAlertViewStylePlainTextInput;
UITextField *textField = [alert textFieldAtIndex:0];
textField.textColor =WordDeepColor;
textField.font = [UIFontsystemFontOfSize:14];
textField.placeholder =@"请输入昵称";
[alertshow];
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 1) {
UITextField *textField = [alertView textFieldAtIndex:0];
self.user.nick = textField.text;
[selfchangeUserInfoHasHeadImage:NO];
}
}