user2646711
user2646711

Reputation: 31

Xcode 4.6 iOS Setting a ViewController's Class

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

Answers (2)

vzm
vzm

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.

enter image description here

Upvotes: 5

Rob van der Veer
Rob van der Veer

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

Related Questions