Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

simonemaynard

macrumors newbie
Original poster
Aug 26, 2010
2
0
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
 

Sykte

macrumors regular
Aug 26, 2010
223
0
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

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
 

simonemaynard

macrumors newbie
Original poster
Aug 26, 2010
2
0
This is the code. Can you take a look at the pushviewcontroller in RootViewController.m?

The application is failing on the didSelectRowAtIndex method.
 

Attachments

  • PecoNet.zip
    644.4 KB · Views: 759

rickjackson

macrumors newbie
Dec 24, 2010
25
0
This is the code. Can you take a look at the pushviewcontroller in RootViewController.m?

The application is failing on the didSelectRowAtIndex method.

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 :)
 

rickjackson

macrumors newbie
Dec 24, 2010
25
0
Add a navigationcontroller to your rootview, and then do a drilldown there.
Not seeing the problem.

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
 

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
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..
 

Attachments

  • DrillDown.zip
    29.5 KB · Views: 1,150

rickjackson

macrumors newbie
Dec 24, 2010
25
0
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..



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.
 

gaullind

macrumors newbie
Mar 12, 2011
2
0
Please add data

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..

Thanks jnoxx,

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

gaullind

macrumors newbie
Mar 12, 2011
2
0
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.
 

Attachments

  • SVDD 12mars.zip
    808.8 KB · Views: 607
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.