Joseph Collins asks:
How do you decipher a bit mask from an argument which logically OR’d multiple values together? Enum uses bit shifting.
This question came to me while looking at UIView’s header file and wondering how Apple handles the animation options bitmask.
If you have several modes of something then usually you get by with an emum. But if you can combine several flags in s single value then you have to do this by means of bit masks. Let’s explore these today.