-
Notifications
You must be signed in to change notification settings - Fork 223
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
how to deal with multi initializers? #72
Comments
Classes should only have one designated initializer, so |
@NachoSoto thanks 4 ur quick reply :) no, they may call another class instead when using "class cluster", like
the |
Objection will only support one explicit initializer declaration. In the future it might be a good idea to expand the JSObjectionFactory to take an optional initializer argument. Right now you could solve this problem by creating a "builder" or "factory" that constructs the objects with their respective initializers. After initializing them you can use the |
suppose I have a
ViewController
which can init in multi ways like-initWithCategory:
,-initWithTag:
, etc. how to deal this scenario? causeobjection_initializer
seems can be used once.use one
init
and multi-configureWithCategory:
,-configureWithTag:
?The text was updated successfully, but these errors were encountered: