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

kbonly

macrumors newbie
Original poster
Mar 15, 2011
4
0
Dear Developer,
I am developing an application for NewsPaper. Windows based application,
On the rootview I am calling data from different XML file..so I will have to consider multiple table in root view…I am able to display the data from different XML/RSS,But I am not getting how to put navigation control for multiple table? I mean my detail view is not loading ..it’s getting stuck…It’s not showing any error..but detailControler is not loading,I have done everything.. how to solve it..
 
Last edited:
Depends how u are trying to call the navigation. U said yourself u have a window based, so navigation won't work since u simply don't have it :)
otherwise it's just [self.navigationController pushViewController:testVC animated:YES];
..
 
Thanks for Your reply..
I have tried this
[self.navigationController pushViewController:testVC animated:YES];
but it's not working...can u have any sample or any source code or link where I can get the IDea for two tableview and its detailsview controler..no probm...i can modify the application since it's a IPAD apps ..so i can go for ViewBased App..but I need such sample Code...

Please have a needful done...
Thanks in Advanced
 
Facepalm.
The testVC is an example, u should make a reference, an object of ur 2nd view controller
So let's say your secondview is called SecondViewController, and u have a XIB called SecondViewController.xib.

Create a new navigation based project.
Then, where u want to call the push to new file.

Go like
Code:
SecondViewController *secondVC = [[SecondViewController alloc]*initWithNibName:@"SecondViewController" bundle:nil];
[self.navigationController pushViewcontroller:secondVC animates:YES];
[secondVC release];

(might be pushViewController, doing this top of my hat.
That should work, or you really should learn how to use google or youtube, there are gazillion video's about using a navigationcontroller in your app.
 
But in Ipad we do not have any template for Navigation Based App.
The Code which u have pasted here...i have tried..still the same issue...
if you have any working code...windows based or view based App for Ipad...which has got two or more table in Root View Control with navigation control...both table has navigation...in Ipad if i am taking one table then the code is working but when i am taking two or more table then it's not working...can u send me a small app or any link where i can get code...this is my mail ID
kamal_bhatt@yahoo.com or
kamal_bhatt[at]yahoo.com...
I’ll be very thankful to you...please
 
The Window-based template has no navigation controller by default so using self.navigationController isn't going to work.

If you build the navbased template and then use the 'upgrade target for iPad' menu item it will run on iPad fullscreen. Also the split view template has a navigation controller and runs on iPad.
 
Dear Sir,Thanks for Reply.

My app interface is not like SplitView...please can u send me some app code
how how to call detail view of multiple table in sameview. Now I have Created a dummy NavagationBased still same issue....I know I am doing some Worng..but where.. Dear Sir I am sending An Attachment TwoTableView


can u please Modify It and get me back..How to send it to detail page..i have two table in Single view and table has two different detail page. on select of respective table how to send in different view...

Please ha a needful done

I have done like that
Code:
DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];
       [self.navigationController pushViewController:dvController animated:YES];
       [dvController release];
       dvController = nil;
 

Attachments

  • TwoTableViews.zip
    696 KB · Views: 72
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.