I'm trying to switch between two views right now. The problem is how it is called.
Heres the easiest way to explain my situation:
I have a Parent View. With a subclass ChildView, that contains a table. Upon selecting an object in that table, I wish to switch to a different child view of that parent view.
Parent--------- |Child 1 |Child 2
Child 1 is a subclass of Parent to allow me to access a method in Parent that switches between Child Views 1 and 2, but for some reason it wont work when accessing it from Child 1.
Any clues on how to do this? Heres the basic code:
Child 1 - (void) changeViews
[super methodToSwitchChildViews];
Parent - (void) methodToSwitchViews
[self.child1.view removeFromSuperView];
[self.view insertSubView:child2.view atindex:0];