Objective-C Language Enums


  • typedef NS_ENUM(type, name) {...} -- type is the type of enumeration and name is the name of the enum. values are in "...". This creates a basic enum and a type to go with it; programs like Xcode will assume a variable with the enum type has one of the enum values