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 04-10-2011, 08:31 AM   #337 (permalink)
maengkom
Registered Member
 
Join Date: Apr 2011
Posts: 3
maengkom is on a distinguished road
Default

See this example, in More tabbar controller, already created tableview, but how the delegate call ? code inside appdelegate.m ? or where ?

Quote:
Originally Posted by Brix View Post
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.
maengkom is offline   Reply With Quote
 

» Advertisements
» Online Users: 393
18 members and 375 guests
aaronredmond844, apatsufas, asleylq98, blueorb, Clouds, DaveDee, erdinc27, eski, jacob7khan, jeroenkeij, matador1978, MysticLine, networ, sacha1996, shweta128, sirenum, Warblr, zhaoningmei
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,597
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, aaronredmond844
Powered by vBadvanced CMPS v3.1.0

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