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

Support for NS_ENUM values #88

Open
cobarx opened this issue Aug 16, 2016 · 1 comment
Open

Support for NS_ENUM values #88

cobarx opened this issue Aug 16, 2016 · 1 comment

Comments

@cobarx
Copy link

cobarx commented Aug 16, 2016

Is there any way to access enums generated with NS_ENUM? I tried all sorts of different syntactical combinations and wasn't able to find my enum values.

It would be great to have this as I have to create helper methods that to map string inputs to the enums I use internally in my Objective C library.

@lukaskollmer
Copy link

If you want to pass an enum to a method, you can also pass the enums raw value.

Example:
Instead of
-[UITextView setAutocapitalizationType:UITextAutocapitalizationTypeNone];
you could also call
-[UITextView setAutocapitalizationType:0];

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

2 participants