iOS 点击空白处隐藏键盘

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

{

    [self.view endEditing:YES];

}

你可能感兴趣的:(iOS 点击空白处隐藏键盘)