Why Does Editing a Textfield Throw a Nsinvalidargumentexception

iOS 9 (Swift 2) - resignFirstResponder() throws an error

Did you establish an outlet via Storyboard that you then later deleted named ingredientTextFieldDidChange? Right click on the textField in Storyboard to see if that exists, then press the x to delete it.

App crash whenever typing in a text, unrecognized selector sent to instance

Okay there is one solution which may work for you, please try to put the textfield in the initial viewController and check if the app crashes if app don't crash when typing you try this:

For some reason the tab bar controller I was using was causing the issue. Simply deleting the controller, and then going Editor > Embed In > Tab Bar Controller and re adding the views fixed it. Ref

In the another problem can be the data which is passed in the Textfield is not in the valid format is may be Null or have invalid format other than string



Related Topics



Leave a reply



Submit