now hide keyboard when enter is pressed

This commit is contained in:
Diego Waxemberg
2014-10-20 21:45:37 -04:00
parent af43539015
commit 9e8903402b
4 changed files with 16 additions and 1 deletions

View File

@@ -174,6 +174,15 @@ static StreamConfiguration* streamConfig;
// Dispose of any resources that can be recreated.
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[self.view endEditing:YES];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[textField resignFirstResponder];
return YES;
}
- (BOOL)shouldAutorotate {
return YES;
}