What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Make a Detail view for a UITableView

pixelcab

iPF Noob
Joined
Feb 10, 2011
Messages
1
Reaction score
0
Location
Uruguay
Hi guys,

I been looking for days into google to try to make this without luck.
I have a UITableView and I when the user tap over one cell I want to show the details in a new view. Seems very basic function but is making me crazy.

Any of you have an example of how to make this?

thanks!
 

bartekhugo

iPF Noob
Joined
Mar 21, 2011
Messages
4
Reaction score
0
but what kind of a view? standard popover with arrow? modal view? custom view?

anyway you have a method tableView:didSelectRowAtIndexPath: where you can present your view...
 

appzapp

iPF Noob
Joined
May 10, 2011
Messages
3
Reaction score
0
Hi,

you have to implement the following method of the table view

Code:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
in there you just build the Viewcontoller you want and push it to your navigationController. Something like this:

Code:
YourViewControllerClass *viewController = [[YourViewControllerClass alloc]initWithNibName:@"YourViewControllerXib" bundle:nil];
        [self.navigationController pushViewController:viewController animated:YES];        
        [viewController release];

Hope this helps
 

Most reactions

Latest posts

Top