Reputation: 3996
I'm wondering about that, I have seen into many sites describing that Core Image filters on Iphone doesn't support by Apple. But I have seen Core image filter in Core Animation example page on the Apple developer site. just look at here Iphone OS Reference Library, you will see that example on this page
CIFilter *filter = [CIFilter filterWithName:@"CIBloom"];
[filter setDefaults];
[filter setValue:[NSNumber numberWithFloat:5.0] forKey:@"inputRadius"];
Any description for that would be appreciated.
Upvotes: 1
Views: 6668
Reputation: 170319
Core Image is not available on the iPhone. From the CATransition Class Reference, when talking about the filter property:
While the CATransition class exposes this property, Core Image is not available in iPhone OS. Currently the filters available for this property are undefined.
Also, in the CALayer Class Reference, when talking about the filters property:
While the CALayer class exposes this property, Core Image is not available in iPhone OS. Currently the filters available for this property are undefined.
As Cory points out, this guide was written for the Mac and modified to apply to the iPhone. Unfortunately, they left in an example that only works on the Mac.
See also the questions:
Upvotes: 4
Reputation: 4634
Core Image is available for iOS 5, currently in beta. while not all the Mac Filters are included thus far, there's still a good selection.
Upvotes: 1
Reputation: 13044
You're quoting the Core Animation Programming Guide which was originally written for Mac OS X and has since been updated to include iPhone OS. Not all code samples will work on both OS's. You'll find this to be true in many of Apple's programming guides.
Take a look at the revision history.
Upvotes: 1