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 Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 08-10-2011, 06:23 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 37
ahsan123 is on a distinguished road
Default UITableView NextViewController

Hello EveryOne.

I have made a UITableView in which I have insertes strings and this works but when I select a row so nothings happen even I have declared object of new controller in didSelectRowAtIndexPath. Here is the code:

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // Navigation logic may go here. Create and push another view controller.
    
    TodayTasks *today = [[TodayTasks alloc] initWithNibName:@"TodayTasks" bundle:nil];
    // ...
    // Pass the selected object to the new view controller.
	[self.navigationController pushViewController:today animated:YES];
    [today release];
	
}
Please help me in this. I'll be thankful to you

Last edited by ahsan123; 08-10-2011 at 07:21 AM.
ahsan123 is offline   Reply With Quote
Old 08-11-2011, 03:08 AM   #2 (permalink)
Registered Member
 
DeeJay_CRO's Avatar
 
Join Date: Feb 2011
Location: Osijek, Croatia
Posts: 64
DeeJay_CRO is on a distinguished road
Default

Quote:
Originally Posted by ahsan123 View Post
Hello EveryOne.

I have made a UITableView in which I have insertes strings and this works but when I select a row so nothings happen even I have declared object of new controller in didSelectRowAtIndexPath. Here is the code:

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // Navigation logic may go here. Create and push another view controller.
    
    TodayTasks *today = [[TodayTasks alloc] initWithNibName:@"TodayTasks" bundle:nil];
    // ...
    // Pass the selected object to the new view controller.
	[self.navigationController pushViewController:today animated:YES];
    [today release];
	
}
Please help me in this. I'll be thankful to you
Is the nib name correct?
DeeJay_CRO is offline   Reply With Quote
Old 08-14-2011, 05:26 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 37
ahsan123 is on a distinguished road
Default

[QOUTE]Thanks for asking but the problem is solved it actually there was a slight difference in nib file name. You were right. Thanks Deejay_CRO[/QOUTE]
ahsan123 is offline   Reply With Quote
Reply

Bookmarks

Tags
didselectrowatindexpath, nextviewcontroller, uitableview, 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: 402
11 members and 391 guests
AppleDev, chemistry, Gi-lo, ipodphone, mistergreen2011, pipposanta, QuantumDoja, Retouchable, RobTaku, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,925
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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