Does anyone know how to apply a CATransition to only certain objects in a view?
I have a button on top of a background image. I want just the button to be pushed off the screen using kCATransitionPush, but the background image to stay put (because it's also the background image of the next view). My transition code is in a function called 'transition' and my current code, which transitions everything on the screen (not just the button) is this:
Code:
[self.view.layer addAnimation:transition forKey:nil];
I tried doing this:
Code:
[button.layer addAnimation:transition forKey:nil];
But that ends up doing no transition at all! How would I go about implementing this?
Thanks,
John