I am using an enum, something like this:
typedef NS_ENUM(NSInteger, MyURLType) {
MyURLType1,
MyURLType2,
MyURLType3
};
The problem appears when I try to compare or identify the type:
if (type == MyURLType2)
I am getting a "Incompatible integer to pointer conversion" warning in the case of MyUrlType2 and MyUrlType3 (not in the case of MyURLType1). Am I doing anything wrong in the declaration? Any ideas?
Thanks!
MyURLType? - Anil Varghesetypeyou may use * like MyURLType *type - Anil Varghese