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

View Single Post
Old 10-27-2009, 11:56 PM   #308 (permalink)
Brix
Registered Member
 
Join Date: Sep 2009
Posts: 149
Brix is on a distinguished road
Default

Have a check of which row was clicked. For example if,

TableView
Row 1 - Book1
Row 2 - Book2
Row 3 - Book3

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if( indexPath.row == 1 )
{
	 Book1 *xBook1 = [[Book1 alloc] initWithNibName:@"Book1" bundle:nil];
	 [self.navigationController pushViewController:xBook1 animated:YES];
	 [xBook1 release];
}
else if( indexPath.row == 2 )
{
	 Book2 *xBook2 = [[Book2 alloc] initWithNibName:@"Book2" bundle:nil];
	 [self.navigationController pushViewController:xBook2 animated:YES];
	 [xBook2 release];
}
else if( indexPath.row == 3 )
{
	 Book3 *xBook3 = [[Book3 alloc] initWithNibName:@"Book3" bundle:nil];
	 [self.navigationController pushViewController:xBook3 animated:YES];
	 [xBook3 release];
}
}
This is the concept.
__________________
Praise be to God
Brix is offline   Reply With Quote
 

» Advertisements
» Online Users: 562
16 members and 546 guests
.Snipe, Bertrand21, chiataytuday, daunmi, fugufish, GHuebner, GraffitiCircus, HemiMG, HowEver, ilmman, jasonqg49, k2c, mariano_donati, Newbie123, tommiss12
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,987
Posts: 402,404
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:35 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.