Support for NS_ENUM values
cobarx opened this issue · comments
Hampton Maxwell commented
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.
Lukas Kollmer commented
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];