代码改变世界

QQ登录界面

2015-05-07 12:04  dengchaojie_learner  阅读(327)  评论(0编辑  收藏  举报

@property (nonatomic,assign) IBOutlet UITextField *qq;

@property (nonatomic,assign) IBOutlet UITextField *pwd;

 

 

 

- (IBAction) login;

 

 

- (void) login {

 

    NSString *qqText = _qq.text;

    NSString *pwdText = _pwd.text;

    NSLog(@"QQ=%@,密码=%@",qqText,pwdText);

    

    

//    [_qq resignFirstResponder];

//    [_pwd resignFirstResponder];

    

    [self.view endEditing:YES];

    

 

}