Reputation: 1
In the new Xcode 7.2 (iOS9), how do I add a viewcontroller.swift file and link it to a manually added view controller in the storyboard?
(This seems to be different than previous versions of Xcode where one would manually add a Cocoa Touch file after dragging a new view controller object in thestoryboard.)
Thank you.
Upvotes: 0
Views: 868
Reputation: 5616
It has always been the same for me but here are the steps that I follow.
UIViewController
UIViewController
into Interface Builder
UIViewController
Identity Inspector
Custom Class
to the name in your Swift
FileUpvotes: 2