Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface MyClass
- @property(assign, nonatomic) MyType type
- @end
- typedef NS_ENUM(NSInteger, MyType) {
- MyTypeOne = 1,
- MyTypeTwo = 2,
- MyTypeThree = 3
- };
- if obj.type == .three {
- //should be here
- } else {
- //but it is going through here
- }
Add Comment
Please, Sign In to add comment