I have a strage issue that I cannot isolate the cause of. Adding a UIButton to any view is missing Outlet Collections and Send Events sections in the Connections Inspector.
The project has several storyboards and this is constient across them including newly created storyboards with Xcode 7.1 GM. The project was create with Beta 1. There appears to be no other IB issues.
What I've Tried:
- Adding a button to all views in all the existing storyboards -- doesn't work
- Created a new storyboard, added a new UIViewController, added a UIButton -- doesn't work
- Added a UIButton to a UIKitCatalog view -- works
- Create a new project, added a new UIViewController, added a UIButton -- works
I'm adding the Target-Action in code to get it to work, but my concern is that there is an underlying issue that might cause yet to be discovered problems. Anyone have any insight into this?
Thanks,
Mark
Finally figured out what caused this. If UIButton is extended and adopts a protocol then IB doesn't display Send Events. Radar incoming.
The workaround is comment out the extension, make the connection to the IBAction, uncomment the extension. Everything is hooked up and works at runtime, you just don't see it in the Connections Inspector.