Enums
suggest changeSyntax
- typedef NS_ENUM(type, name) {…} – type is the underlying type and name is the enum name. Enumerators go inside the braces. This creates an enum and a typedef; Xcode assumes a variable of that type holds one of the enumerators.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents