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 03-16-2011, 10:52 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: Australia
Posts: 10
ellawson is on a distinguished road
Question Drill down TableView + TabBar not working

Hi everybody,

WARNING: Xcode and programming newbie alert!

Has anyone here had an issue with combining drill-down table functionality with tab bar views? Basically I set up a Tab Bar project in Xcode, and after following this tutorial (up to Figure 6) to get the first table view in, I followed this one to get a second-level table appearing when each top-level table view row is tapped. I have done each one separately and know they both work; however when combined I get the top-level table appearing, and I can touch it to make the rows go blue, but it doesn't go to the second-level table view.

I'm hoping there's a fix to this... let me know what code you need to see and I'll gladly post it.

Many thanks!
ellawson is offline   Reply With Quote
Old 03-17-2011, 11:53 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
chrism1974 is on a distinguished road
Default

Quote:
Originally Posted by ellawson View Post
Hi everybody,

WARNING: Xcode and programming newbie alert!

Has anyone here had an issue with combining drill-down table functionality with tab bar views? Basically I set up a Tab Bar project in Xcode, and after following this tutorial (up to Figure 6) to get the first table view in, I followed this one to get a second-level table appearing when each top-level table view row is tapped. I have done each one separately and know they both work; however when combined I get the top-level table appearing, and I can touch it to make the rows go blue, but it doesn't go to the second-level table view.

I'm hoping there's a fix to this... let me know what code you need to see and I'll gladly post it.

Many thanks!
Can you post your didSelectRowAtIndexPath method of the top tableview controller? I suspect the issue may be there, but without example source code, I'm only guessing.
__________________
iPhone developer and consultant. PM for additional information.

Webpage: Gray Bird Software
iPhone app:
Grade A+

Did I help you? Thank me with a PayPal donation
chrism1974 is offline   Reply With Quote
Old 03-18-2011, 12:03 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: Australia
Posts: 10
ellawson is on a distinguished road
Post Top TableView didSelectRowAtIndexPath

Thanks. Here we go...

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
    // Navigation logic may go here -- for example, create and push another view controller.
	// AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
	// [self.navigationController pushViewController:anotherViewController animated:YES];
	// [anotherViewController release];
	
	if (0 == indexPath.row)
	{       
		self.studentL2Controller.title = @"Student Facilities";
	} else {
		self.studentL2Controller.title = @"Library";
	}
	
	[self.navigationController pushViewController:self.studentL2Controller animated:YES];
}
ellawson is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, navigation view, tab bar, table view, xcode

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: 341
10 members and 331 guests
7twenty7, chiataytuday, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, mistergreen2011, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,661
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, tinamm64
Powered by vBadvanced CMPS v3.1.0

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