I'm perfroming a simple view transition using the code below:
int controllerIndex = 1;
UIView * fromView = self.tabBarController .selectedViewController.view;
UIView * toView = [[self.tabBarController.viewControllers objectAtIndex:controllerIndex] view];
// Transition using a page curl.
[UIView transitionFromView:fromView toView:toView duration:0.8
options:(controllerIndex > self.tabBarController.selectedIndex ? UIViewAnimationOptionTransitionCurlUp : UIViewAnimationOptionTransitionCurlDown)
completion:^(BOOL finished) {
if (finished) {
self.tabBarController.selectedIndex = controllerIndex;
}
}];
Is there any way that I can pass the id of the view i am transitioning from so I can then perform some logic. i.e. if transitioning from view with id do this....
Thanks,
Matt