Skip to content

Instantly share code, notes, and snippets.

@konecnyna
Created March 28, 2016 16:47
Show Gist options
  • Save konecnyna/39a3e1426ee753dcd888 to your computer and use it in GitHub Desktop.
Save konecnyna/39a3e1426ee753dcd888 to your computer and use it in GitHub Desktop.
ROB!
//HEADER!
typedef NS_ENUM(NSUInteger, CustomShopState) {
CustomShopStateDisabled,
CustomShopStateEnabled,
CustomShopStateDeleted,
CustomShopStatePreview,
CustomShopStateTrial,
CustomShopStateDCDisabled,
CustomShopStateAdminClosed
};
@property (readonly, nonatomic) CustomShopState customShopStateValue;
//M file!
- (CustomShopState)customShopsStateValue {
return CustomShopStateEnabled;
}
//ASSIGN DIS.
self.custom_shop_enum = [self stringParam:@"custom_state"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment