UIImageView *person = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"geren"]];
person.frame = CGRectMake(10, 10, 300, 130);
UITextField *newPwd = [[UITextField alloc] initWithFrame:CGRectMake(95, 55, 185, 21)];
newPwd.borderStyle = UITextBorderStyleRoundedRect;
newPwd.autocorrectionType = UITextAutocorrectionTypeYes;
newPwd.placeholder = @"輸入您的新密碼";
newPwd.secureTextEntry = YES;
newPwd.returnKeyType = UIReturnKeyDone;
newPwd.clearButtonMode = UITextFieldViewModeWhileEditing;
[newPwd setBackgroundColor:[UIColor whiteColor]];
[person addSubview:newPwd];
VIEW默認是不和用戶交互的,所以要開啟交互.userActivityEnable = YES