#pragma mark - 
- (void)initTextView
{
    userNameTextField = [[UITextField alloc] initWithFrame:CGRectMake(80, 140, 160, 40)];
    userNameTextField.backgroundColor = [UIColor whiteColor];
    
    pwdTextField = [[UITextField alloc] initWithFrame:CGRectMake(80, 180, 160, 40)];
    pwdTextField.backgroundColor = [UIColor whiteColor];
    
    userNameTextField.keyboardType = UIKeyboardTypeASCIICapable;
    userNameTextField.returnKeyType = UIReturnKeyNext;
    userNameTextField.placeholder = @"请输入用户名/手机号";
    
    pwdTextField.keyboardType = UIKeyboardTypeASCIICapable;
    pwdTextField.returnKeyType = UIReturnKeyGo;
    pwdTextField.secureTextEntry = YES;
    pwdTextField.placeholder = @"请输入密码";
    
    [self.view addSubview:userNameTextField];
    [self.view addSubview:pwdTextField];

}

 

posted on 2014-09-11 09:58  ZiCheng  阅读(261)  评论(0)    收藏  举报