I have a method that brings in an Enum value as an argument.
enum {
UITableViewCellStateDefaultMask = 0,
UITableViewCellStateShowingEditControlMask = 1 << 0,
UITableViewCellStateShowingDeleteConfirmationMask = 1 << 1
};
There are four possible values:
- Only
UITableViewCellStateDefaultMask
is true. - Only
UITableViewCellStateShowingEditControlMask
is true. - Only
UITableViewCellStateShowingDeleteConfirmationMask
is ture. - Both
UITableViewCellStateShowingEditControlMask
ANDUITableViewCellStateShowingDeleteConfirmationMask
are true.
That last possibility is the one I'm having trouble with. What statement will return true if and only if the two last options are true????
(This is Objective-C code btw)
Thanks!