Friday, 29 August 2014

Linking File's owner in a Nib

Yes, nibs are old now, but once in a while, I like to use them when the storyboard view controller starts growing too much.

Recent issue with me was linking my IBActions to UIButtons in the Nib. The file owner was not showing me the options, nor could I Ctrl+drag the IBActions directly to my view controller.

Supposedly the problem lied in the fact that Xcode by default makes the File Owners class as NSObject. Changing the class for the owner to `MyClass` fixed the issue.