tags:

views:

3

answers:

0

Not much point in providing code I think as there is a lot of it and its something missing thats causing this problem.

I load a settings view MainSettings (a) with two rows 'General' and 'About'. Number of sections set to 1, number of rows in section set to 2. cellforrow at Index path values all hardcoded. If section 0, cell 0 "General", If section 0, cell 1 "About", if cell selected I push a view controller (2).

So far so good.

View controller2 works similar except it is the delegate for view controller 3 which is where the actual settings are changed.

If I change one setting in controller 3 and backout to controller 1 all is good. Same if I change setting 1, change setting 2 than back out.

Now, If I change setting 1, then setting 2, then setting1 again then back out the program crashes somewhere after view will appear in controller 1 with the above message. This makes be think it is some kind of 'retain' issue with the indexPath. Tried reloading the tableView in view appear, makes no difference.

First thought is I have a nil indexpath or cells but can't figure out where or how to either check or fix this.

Any thoughts on how best to go about tracking this would be appreciated.