触摸隐藏键盘

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

{

    [_phoneNum resignFirstResponder];

    _phoneNum.keyboardType = UIKeyboardTypeNumberPad;

    [_password resignFirstResponder];

}

 

posted @ 2015-10-10 17:51  上官元空  阅读(117)  评论(0编辑  收藏  举报