Removing the Storyboard
Delete your storyboard
Delete the main interface in plist
If you try running now you will see
Add a plist entry with key NSExtensionPrincipalClass and value the name of your view controller.
Adding the xib
Now create a new view as a xib
Hook the View.xib up to the ViewController by clicking File’s Owner
Then click Identity inspector and type in your ViewController class.
Then hookup the outlet by dragging the File’s Owners view outlet
To the View
It’s not a control drag. Just a regular drag from the view dot in the outlet to the View on the left.
Add a label to xib if you just want to see something visually and test.
Then Run
Leave a Reply