I have some code (ILColorPicker) that I want to install into my iPad app, which is using StoryBoards. The instructions from the author say:
- In your view controller’s XIB, add a UIView and then set it’s class to ILColorPickerView
- Wire the delegate property of the ILColorPickerView to your view controller in Interface Builder by selecting the UIView and clicking on the last tab. Then click on the circle next to “delegate” and drag that to “File’s Owner” on the left.
- Implement the delegate method: colorPicked:(UIColor *)color forPicker:(ILColorPickerView *)picker
How do I do this, when I am using Storyboards and there is no delegate or “File’s Owner”? I have created a class with a subview to hold the picker, but see now that I don’t need the subview. With that in mind, how do I connect this to my controller’s view?
Files Owner is the View Controller. You don’t need a Nib file for this, you can use a scene with a ViewController and just follow the directions from there. You can add a class (of type UIViewController) to you app and then associate that class with the VC in storyboard. That class will be the “Files Owner”.