Vitalii Rybachenko

Vitalii Rybachenko

Full Stack Developer

Sunday is another good day to fix the Xcode

on
Thoughts
Feature image of Sunday is another good day to fix the Xcode

Developing for Mac and iOS isn't my primary profile, but every time I open Xcode IDE, it brings me another bunch of bugs. This time I have got tired because of the bug with Storyboard,where Connections inspector missing Sent Events section for UITextField or UIButton.

Screenshot of XCode storyboard pane with outlets for UIButton

Every time it happens to me, I'm too lazy to investigate why it happens, but not anymore. I don't want to assign event listeners via addTarget or modifying Storyboard in text editor, because I like to design as much as possible inside Storyboard editor.

If you have connected IBAction before, and after some time the Sent Events section become missing, you will get next picture:

Screenshot of XCode storyboard pane with outlets for UITextField control events

This appeared in Xcode 4, and not fixed yet. To fix it, you need to search your project (or workspace, if you have a lot of subprojects and/or CocoaPods) for extensions of native UITextField class and comment them out.

Screenshot of XCode search results pane with elements which are coming from searching for 'extension UITextField'

After it, you can connect all actions you need, safely uncomment that extensions and pray Apple so they could finally find a bug and fix it.

Screenshot of XCode storyboard pane with outlets for UITextField

Anyway, if you are too lazy, as me, there is another way to do the same ;)

Screenshot of terminal with opened storybard file