I have an existing View Controller file with a set of code. I want to create an interface builder file for the ViewController and link them. Right now i don't seem to find UIViewController option in the New file options as give here.
Can any body tell me how to achieve this?
Now Apple preferably recommend to use storyboard as its easy to use and handle view controllers but still if you want to create separate view controller Please follow these steps.
1- Create objective c file or swift as you like
2- Change the UIView class to UIViewController
3- Create xib file
4- Add UIViewController object as shown in pic
5- Select the controller go to the 'Show inspector identity' and set the controller custom class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With