How to animate when no reference to target view?
In my iOS5 app for iPhone, I have something like this
Now I want to animate from view1 from viewcontroller1 to view2 from viewcontroller2 by pushing a button in viewcontroller1.
Bu I do not have a reference to the view2 to the viewcontroller2 in viewcontroler1.
If I hook the button to an action/target and use block based animation in it
this one >>
I am unable to fill in the toView: because of those missing references.
[UIView transitionFromView:<#(UIView *)#>
What would you recommend? IS it even good to solve thi by action target?