Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2010, 04:35 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 98
RichardCornet is on a distinguished road
Default UITableview HELP!!!

Hi

I'm trying to create an app that has a table view with around 7 rows. When the user clicks on the different cells i would like it to bring in different views(.xib) if possible.

At present i have started in a view based app, i can navigate to the different pages and end up on the page with my table but i'm not sure how to then get to the next page by clicking on the cells.

any ideas?

Please!!!
RichardCornet is offline   Reply With Quote
Old 07-06-2010, 04:43 AM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 100
mobin_shaikh is on a distinguished road
Default

u prefer navigation controller for this... i think it is most useful in ur case...
mobin_shaikh is offline   Reply With Quote
Old 07-06-2010, 05:34 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 98
RichardCornet is on a distinguished road
Default

Quote:
Originally Posted by mobin_shaikh View Post
u prefer navigation controller for this... i think it is most useful in ur case...


Do you mean i would have to start again from scratch using a navigation based program or by adding in a navigation controller from the library??

cheers
RichardCornet is offline   Reply With Quote
Old 07-06-2010, 05:43 AM   #4 (permalink)
el guaje
 
kevinyide's Avatar
 
Join Date: Jun 2010
Posts: 243
kevinyide is on a distinguished road
Send a message via Yahoo to kevinyide
Default

To go to your desired view, you could use the navigation controller & the tableView delegate method like so:
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    YourDesiredView *desiredViewControl = [[YourDesiredView alloc]initWithNibName:@"DesiredView" bundle:nil];
    [self.navigationController pushViewController:desiredViewControl animated:YES];
    [desiredViewControl release];
    
}
dont forget to import the YourDesiredView.h in the class containing your tableView.
kevinyide is offline   Reply With Quote
Reply

Bookmarks

Tags
uitableview, xib

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
7 members and 320 guests
anothermine, Chickenrig, givensur, iNet, michaelhansen, PixelInteractive, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0