Adding a Tab Bar Object

Discussion in 'iPhone/iPad Programming' started by matthew858, Dec 14, 2008.

  1. macrumors member

    Joined:
    Apr 15, 2008
    Location:
    Sydney, Australia
    #1
    I was looking at adding a tab bar object to TheElements sample code, but was wondering how to do it. I am trying to make a tab bar object called "First", so I made some .h and .m files called "FirstTabController". A added the header file to TheElementsAppDelegate, and I declared it in TheElementsAppDelegate.m the following way:
    Firstly, is this implementation all right?


    In FirstTabController, I put the following code:

    What else do I have to do in order to get my tab to display and just display a blank view?

    Thanks in advance!
     
  2. thread starter macrumors member

    Joined:
    Apr 15, 2008
    Location:
    Sydney, Australia
    #2
    OK, I have established that I need the following code in TheElementsAppDelegate.m if I want to show an empty view:
    How can I implement this into a view controller subclass?
     

Share This Page