I'm trying to use CATransition
's filter
property with the new iOS 6 transition animations (CIBarsSwipeTransition, CICopyMachineTransition, etc.). The CIFilter
documentation says that these are available on iOS 6, and nothing on the CATransition
documentation says that the filter
property cannot be used.
But, I can't seem to get them to work. I don't know if Apple just failed to mention the inavailability of the functionality or I'm just missing something to make it work. Here's how I set it up:
CIFilter *transitionFilter = [CIFilter filterWithName:@"CIBarsSwipeTransition"];
[transitionFilter setDefaults];
CATransition *transition = [CATransition new];
transition.duration = 0.4f;
transition.filter = transitionFilter;
[self.view.layer addAnimation:transition forKey:kCATransition];
Any pointers are appreciated.