I am posting here because i can't find a solution to a very strange problem actually. On every single text field in my app, every time I try to focus on a text field, the view print the view of my main view in my app, which is managed with a navigation controller and a Reveal View Controller (SWRevealViewController framework).
Here are a few pics to show you.
Without focus:
With focus:
I tried to change the FirstResponder but it did not work, here is my code from a container view in my app which contains a few textFields :
func textFieldShouldReturn(textField: UITextField) -> Bool {
self.view.endEditing(true)
textField.resignFirstResponder()
if (textField == self.cityField) {
self.cityField.becomeFirstResponder()
}
else if (textField == self.streetField) {
self.streetField.becomeFirstResponder()
}
else if (textField == self.countryField) {
self.countryField.becomeFirstResponder()
}
else if (textField == self.postalCodeField) {
self.postalCodeField.becomeFirstResponder()
}
return false
}
Can anyone help me?