Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-15-2009, 03:25 PM   #4 (permalink)
bigbad
Registered Member
 
Join Date: Jul 2009
Posts: 22
Default

hi guys

I wanted to do the exact same as Jelloke, and have looked through the o'reilly video which is great, except that the table view does not link to a new view, but rather generates a details view from the table data...

I am sure I am doing something really stupid and would love some help.

when table cell "Case 1" is tapped I want Case01.xib to be called into view.. this is the code I have, but clicking does not work. The cell goes blue when tapped and that is it. no crash but no new view.

Code:
	if ([[tableList objectAtIndex:indexPath.row] isEqual:@"Case 1"])
	{

Case01 *case01 = [[Case01 alloc] initWithNibName:@"Case01" bundle:nil];
		[case01 setTitle:@"Case 1"];
		[self presentModalViewController:case01 animated:YES]; 
}
I suspect the last line is wrong.. but I can't work it out...



Thanks in advance

Last edited by bigbad; 08-21-2009 at 08:34 AM.
bigbad is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,681
Threads: 38,445
Posts: 168,923
Top Poster: smasher (2,541)
Welcome to our newest member, kai
Powered by vBadvanced CMPS v3.1.0

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