Search code examples
iosxcodeviewuistoryboardcontrollers

Using my View Controller in a storyboard based app in iOS


So I have made a storyboard based app on Xcode, basically a series of table views which lead to text based pages, but I started from a blank application.

I have now written my own view controller which essentially just puts banner ads along the top, but how do I go about actually including it in my build?

I have made an objective-c class called 'viewController' based on this tutorial: https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals

I am not sure how to run this when I build though

This is what I have so far: http://pastebin.com/p93uSN8c


Solution

  • I think you are asking to add a UIViewcontroller to the storyboard. Just open the storyboard drag and drop the UIVIEW Controller in the storyboard now,change the class name of the UIVIEW controller to the name which you have given to your view controller class.

    If you have any query plz ask and elaborate your question