ipad: Split View with drill down menu UITableView - Need sample code

Discussion in 'iOS Programming' started by simonemaynard, Aug 26, 2010.

  1. simonemaynard macrumors newbie

    Joined:
    Aug 26, 2010
    #1
    Does anyone know where I can find some sample code for drill down on the rootviewcontroller with split view?

    I've tried importing code from the iphone drill down tutorial but it breaks down when it calls pushViewController.

    Thanks,

    Simone
     
  2. Sykte macrumors regular

    Joined:
    Aug 26, 2010
    #2
    If you setup a standard SplitView Project a navigation controller doesn't exist. The splitView is created and added as a subView of UIWindow. Remember SplitViews should always be added as the rootView. http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/UserInterface/UserInterface.html. You will need to create a navigation controller within your rootViewController to manage your navigation
     
  3. simonemaynard thread starter macrumors newbie

    Joined:
    Aug 26, 2010
    #3
    This is the code. Can you take a look at the pushviewcontroller in RootViewController.m?

    The application is failing on the didSelectRowAtIndex method.
     

    Attached Files:

  4. rickjackson macrumors newbie

    Joined:
    Dec 24, 2010
    #4
    Hey Simone,

    You got the answer for your post. If yes please help us too. I am also in the same problem how to do it :)
     
  5. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #5
    Add a navigationcontroller to your rootview, and then do a drilldown there.
    Not seeing the problem.
     
  6. rickjackson macrumors newbie

    Joined:
    Dec 24, 2010
    #6
    Hello Jnoxx Thanks For Your Reply...


    Can u please make a sample application and show it to us. I will be very thankfull to you.

    Thanks
     
  7. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #7
    Really isn't that hard guys.
    The basic rootview has a nav controller in it.
    I just edited the basic project also, so u can edit the basic XIB too.
    And don't pm me, the community isn't helped with that..
     

    Attached Files:

  8. rickjackson macrumors newbie

    Joined:
    Dec 24, 2010
    #8


    Thanks JNOXX For your sample application. Actually i am not able to find any tutorial which would explain how to create a SplitView Controller from scratch. But now with your help i figured it out.
     
  9. gaullind macrumors newbie

    Joined:
    Mar 12, 2011
    #9
    Please add data

    Thanks jnoxx,

    As a newbie struggling with trying to create an app for school, could you please provide an example with data.plist
     
  10. gaullind macrumors newbie

    Joined:
    Mar 12, 2011
    #10
    My attempt to Drill Down with Split View Controller

    Here is my attempt to create a Drill Down with Split View Controller. I hope that it will eventually become an app for my students.

    I can't seem to get any row with children to push out to the detail view.

    Can anyone please help.

    Here is a copy of the project.
     

    Attached Files:

  11. Unixed macrumors newbie

    Joined:
    Mar 10, 2011
    #11

Share This Page