I have a view controller which is assigned as a rootViewController like below :
self.viewCntrl = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
self.window.rootViewController = self.viewCntrl;
And in the same view controller i have a button and i am performing transition animation on button click like this:
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view.superview cache:YES];
but it not works when i write like this:
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
As here self is a ViewController’s object, the ViewController which is nothing but assigned to self.window.rootViewController. So why it takes self.view.superview instead of self.view to animate?
Depending on the kind of animation you are trying to execute, possibly the answer is here: