Reputation: 69
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
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