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 01-20-2011, 12:06 AM   #1 (permalink)
Registered Member
 
Mr.Abe90's Avatar
 
Join Date: Sep 2010
Posts: 45
Mr.Abe90 is on a distinguished road
Default More than two pages of table views

OK, so I have a UITableView app and on my first page of cells I have 5 of them and when any cell is clicked on it opens up a new page with 3 cells.
Shown here \\//
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
	NSArray* names = nil;
	
	switch ([indexPath row])
	{
		case 0:
			names = [NSArray arrayWithObjects:@"???", @"???", @"???", nil]; 
			break;
		case 1:
			names = [NSArray arrayWithObjects:@"???", @"???", @"???", nil];
			break;
		case 2:
			names = [NSArray arrayWithObjects:@"???", @"???", @"???", nil];
			break;
		case 3:
			names = [NSArray arrayWithObjects:@"???", @"???", @"???", nil];
			break;
		case 4:
			names = [NSArray arrayWithObjects:@"???", @"???", @"???", nil];
			break;
		default:
			break;
	}
	
	if (names)
	{
		AppTableViewController* ftvc = [AppTableViewControllerAppTableViewControllerWithAppNames:names];
		[[self navigationController] pushViewController:ftvc animated:YES];
	}
	
	[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
And I would like to have at least one more page of cells when i click one of those 3 cells, But I can't figure out how to do this since the code doesn't specify which page of cells all the cases correspond to.
So My question is in the code how do I make more than two pages of table views in a row?
Mr.Abe90 is offline   Reply With Quote
Reply

Bookmarks

Tags
table cell, table view

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: 354
10 members and 344 guests
7twenty7, dre, iAppDeveloper, jeroenkeij, Mah6447, Morrisone, sacha1996, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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