Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience initializer for CIFilter is not working #42

Closed
sujal99 opened this issue Nov 11, 2014 · 5 comments
Closed

Convenience initializer for CIFilter is not working #42

sujal99 opened this issue Nov 11, 2014 · 5 comments

Comments

@sujal99
Copy link

sujal99 commented Nov 11, 2014

The exception while calling convenience init(name: String, parameters: Parameters) inside self.init(name: "CIGloom")

2014-11-11 16:05:36.249 HelloCIFilter[16416:480862] +[NSObject customAttributes]: unrecognized selector sent to class 0x110d50d28
(lldb) 

Using SDK iOS 8.1

screen shot 2014-11-11 at 15 09 10

@pyanfield
Copy link

yes, I have the same problem.

@floriankugler
Copy link
Contributor

Thanks for reporting this issue. CIFilter now already comes with a name:withInputParameters: initializer, as well as with an outputImage property. So you can remove the whole extension on CIFilter and replace any CIFilter(name:parameters:) calls by CIFilter(name:withInputParameters:). This should resolve the issue.

@vietlq
Copy link

vietlq commented Dec 9, 2014

Thanks. Will you update the e-book soon?

Are you referring to this?

filterWithName:keysAndValues:

https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIFilter_Class/index.html

@floriankugler
Copy link
Contributor

@vietlq yes, we'll update it soon.

I'm referring to a different initializer, I don't think this one is in the documentation. Check the CIImage header file.

@floriankugler
Copy link
Contributor

eBook is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants