Hello,
This is what I am trying to do:
I have created two views, lets call them View1 and View2, in Interface Builder.
1. From some other view I click a button and then load View1. This is all easily done using a displayView in the controller for for the starting view.
2. When View1 is loaded, the user can do some things on the screen and then View2 will be loaded. Conceptually (and perhaps practically), at the end of the method (hitTest) that handles the users input, is when I want to change view. I must do it programatically in some way, I assume.
I have created a my own view class in XCode that is associated with View1 in Interface Builder. It is this class that handles the user's input and should also make sure View2 is loaded.
The problem is that I don't konw how to access the controller object for View1 (in which I will implement displayView method that displays View2) from my own view class that is associated with View1 in Interface Builder.
How do I do that? Or am I doing something fundementally wrong here.
I am very tired, but I hope I made it clear what I want to achieve...
Thank you in advance!
Regards,
Niklas
This is what I am trying to do:
I have created two views, lets call them View1 and View2, in Interface Builder.
1. From some other view I click a button and then load View1. This is all easily done using a displayView in the controller for for the starting view.
2. When View1 is loaded, the user can do some things on the screen and then View2 will be loaded. Conceptually (and perhaps practically), at the end of the method (hitTest) that handles the users input, is when I want to change view. I must do it programatically in some way, I assume.
I have created a my own view class in XCode that is associated with View1 in Interface Builder. It is this class that handles the user's input and should also make sure View2 is loaded.
The problem is that I don't konw how to access the controller object for View1 (in which I will implement displayView method that displays View2) from my own view class that is associated with View1 in Interface Builder.
How do I do that? Or am I doing something fundementally wrong here.
I am very tired, but I hope I made it clear what I want to achieve...
Thank you in advance!
Regards,
Niklas