Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

Drill Down Menus

User Post

7:01 pm
October 5, 2008


Jacob

Noob

posts 1

1

I'm trying to make a simple program to house information in a hierarchal system of menus. I am using the Sqlite Books sample app from apple as my template however I cannot seem to figure out how to hook up the information to the end of the menu. In other words, I cannot figure out how to display new data at the last view of a menu system (i.e.    mainmenuitems -> list of subviews -> subview -> viewdetails.

I cannot figure out how to display the “viewdetails” part, if anyone knows how to do this, it would make my day and possibly my whole year. Thanks

1:47 pm
October 7, 2008


VertigoSol

Moderator

posts 26

2

if you are using a navigationController to handle the menu navigation you can do something like this and your subview is a tableViewController

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   
       ViewDetailsController* vc = [[ViewDetailsController alloc] initWithNibName:@”ViewDetailsController” bundle:[NSBundle mainBundle]];

    [[self navigationController] pushViewController:vc animated:YES];

    [vc release];
   
}


This is assuming your view details view was made as a nib if not there is a different way to load it up but the same principal

e^i -1 =0

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

2 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.