I'm not sure if this is possible on iOS. From the CATransition documentation:
If specified, the filter should support both the kCIInputImageKey input keys and kCIInputTargetImageKey , and the kCIOutputImageKey output kCIOutputImageKey .
From CIFilter Documentation (Constants Section) (emphasis mine)
kCIInputTargetImageKey
The key for the CIImage object, which is the destination image for the transition. Available in OS X v10.5 and later. Not available on iOS .
The filter exists, and inputTargetImage is one of the input keys, but even if you yourself create the kernel image data and assign it to the properties (which are displayed correctly in the debugger), you still do not get the effect.
Creating the same effect for OS X is as simple as the code in your question. I filed this as a radar (13281399).
jrturton
source share