Thus, in my travels, I saw how such transfers are listed (when a bit map is required)
enum {
UIControlStateNormal = 0,
UIControlStateHighlighted = 1 << 0,
UIControlStateDisabled = 1 << 1,
UIControlStateSelected = 1 << 2,
};
However, I recently looked at the NSJSONSerilization class to meet an enumeration defined as
enum {
NSJSONReadingMutableContainers = (1UL << 0),
NSJSONReadingMutableLeaves = (1UL << 1),
NSJSONReadingAllowFragments = (1UL << 2)
};
typedef NSUInteger NSJSONReadingOptions;
So, I think my question is what it does UL. What is the difference between 1 << 1and1UL << 1
source
share