Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 10, 2009, 03:36 PM   #1
mbarron
macrumors newbie
 
Join Date: Mar 2009
NavigationController works first time out and back but not second time

I get the following error :
2009-04-10 16:06:30.268 SQLiteBooks[7061:20b] *** -[NSCFSet setParentViewController:]: unrecognized selector sent to instance 0x25315c0
2009-04-10 16:06:30.268 SQLiteBooks[7061:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFSet setParentViewController:]: unrecognized selector sent to instance 0x25315c0'
2009-04-10 16:06:30.269 SQLiteBooks[7061:20b] Stack: (
12480779,
10165819,
12509962,
12503308,
12503506,
816634940,
816634297,
13352,
816405054,
816409512,
816216343,
816148479,
816144864,
827743722,
827753484,
11982325,
11984088,
827745792,
827745989,
816114848,
816160924,
8464,
8318
)
I based this app on example SQLiteBooks, the name for the PCH is still name
that way, hence the Listing above.

This error occurs not the first time but the SECOND time I try to "navigate" from one view to
a second view. I successfully reach the second view on the first attempt ( after
push the UIViewController for the second view onto the UINavigationController), that is
following a section in the TableView of the first view the following code runs
in an Instance of MasterViewController

[[self navigationController] pushViewController:subListViewController animated:YES];

The navigation Bar has a BackButton on VC #2 , which I used to return to the view of the original
MasterViewController. I immediately select an item in the tableView of the MasterViewController
, attempting to return to the second view for a second time
and immediately receive the error message above.

The BackButton of the SubListViewController appears to successfully pop off the "second" VC
or sublistViewController from the NavigationControllers stack. Can you please suggest
how I go about discovering a solution to this problem.
I have commented out almost all of the code in MasterViewController to reduce the
code hit.

MasterViewController, the first VC is loaded from a Nib.
I hope this info is sufficient and not too much.

Many Thanks for looking at this post. Mark
mbarron is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: DebianSaverLaunchDeamon only works some of the time. Can somebody help? charlestx Jailbreaks and iOS Hacks 4 Feb 27, 2014 07:55 PM
Touch ID works what percent of the time bushman4 iPhone 48 Dec 13, 2013 01:10 PM
Time machine Back up Time anemicrock OS X 1 Oct 25, 2013 04:00 PM
Nothing works on my Time Capsule PalacePlayers Mac Peripherals 3 Apr 30, 2013 09:32 AM
Can someone explain how Time Machine works? Greencardman OS X 0 Nov 12, 2012 01:40 PM

Forum Jump

All times are GMT -5. The time now is 11:42 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC