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 8

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


About the iCodeBlog forum

Currently Online:

2 Guests

Maximum Online: 14

Forums:

Groups: 2

Forums: 6

Topics: 118

Posts: 394

Members:

There are 225 members

There are 1 guests


Brandon has made 73 posts

Top Posters:

bobcubsfan - 33

crazyiez - 30

Uhu - 17

Nick - 15

corey - 10

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: