Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • You are welcome! :) When you have another question, please let me know. Commented Sep 22, 2015 at 13:01
  • I added swipeGesture to my viewcontroller, but didn't change tvEditor.resignFirstResponder() to self.view.endEditing(true). That worked fine for a while. When I did make that change, Xcode gave me - fatal error: unexpectedly found nil while unwrapping an Optional value. I changed the code back to what it was formerly, but I'm still getting the error. Does this have something to do with wrongly configuring the gesture, or is there some other problem with my code? As you might've guessed, I'm a beginner. Commented Sep 27, 2015 at 13:39
  • Hi I'm sorry late reply. Commented Sep 28, 2015 at 14:07
  • I'm not sure why you can't use it, it works fine for me. So do you mean there are a build error or runtime error? Thanks Commented Sep 28, 2015 at 14:08