You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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];
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.
The text was updated successfully, but these errors were encountered: