user1546987
user1546987

Reputation: 69

Simple thing: How to connect new .h and .m to storyboard Xcode

Ive written the code in a new .m file, but I don't know how to link it to the storyboard as to make it run the code. any help please? a new .m

Upvotes: 0

Views: 1929

Answers (1)

Zaraki
Zaraki

Reputation: 3730

Drag a new ViewController into the storyboard. Now select the File's Owner for this new ViewController. Go to custom class and set the class to MyViewController which you have created as MyViewController.m Now you can use this new ViewController for MyViewController. Also, see this

Upvotes: 3

Related Questions