Skip to content

Instantly share code, notes, and snippets.

@sendoa
Created November 27, 2012 14:56
Show Gist options
  • Save sendoa/4154648 to your computer and use it in GitHub Desktop.
Save sendoa/4154648 to your computer and use it in GitHub Desktop.
Modern enum en Objective-C
// http://objective-c.es/modern-objective-c-enum/
// http://nshipster.com/ns_enum-ns_options/
typedef NS_ENUM(NSUInteger, GBDaysOfWeek) {
GBSunday,
GBMonday,
GBTuesday,
GBWednesday,
GBThursday,
GBFriday,
GBSaturday
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment