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:05 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 98
RichardCornet is on a distinguished road
Default UITableView and Navigation help!!

Hi there i've got a little problem with an app i'm trying to make and i feel if i can crack it i should be able to finish the app.

Basically it s a view based application that switches between different views till i end up on a specific view which has a UITableView. I would like to be able to click on the first row in this case 'The British Open' and have that load my next view entitled 'BritishOpenYears.xib'.

I have put in my code for the .m file which will hold the table, does anyone have any ideas what i'm doing wrong. The table loads with the correct row names but will not load the view when selected.

HELP PLEASE!!!!!!!


- (void)tableViewUITableView *)tableView didSelectRowAtIndexPathNSIndexPath *)indexPath {

if ([[tableList objectAtIndex:indexPath.row] isEqual:@"The British Open"])
{
BritishOpenYears *second = [[BritishOpenYears alloc] initWithNibName:@"BritishOpenYears" bundle:nil];
[second setTitle:@"The British Open"];
[self.navigationController pushViewController:second animated:YES];
}

}
RichardCornet is offline   Reply With Quote
Old 07-06-2010, 04:13 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 916
lukeca is on a distinguished road
Default

Is "tableList" an array of NSStrings? If so I think should try using isEqualToString instead of isEqual.

You can put NSLog(@"British Open Selected"); inside your if statement, that will log to your console and help you figure out if your app is even reaching the inside of that if statement.
lukeca is offline   Reply With Quote
Reply

Bookmarks

Tags
cell, navigation, row, uitableview

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: 332
8 members and 324 guests
anothermine, Chickenrig, firecall, 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:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0