Reputation: 31
My Xcode project has a navigation controller, and the main viewcontroller has a UIButton that pushes a new view. How to assign my "SecondViewController" as the view controller class for the second view?
Upvotes: 0
Views: 115
Reputation: 2450
In your interface builder > open the inspector on the right, select the Identity Inspector (3rd option), and under custom class, enter the name of your class.
Upvotes: 5
Reputation: 1148
Go to interface builder, see the property inspector top right (i cant remember the rght name), select your view controller, 2nd tab i believe, there's you class name box.
Upvotes: 0