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
UITableViewCellStateDefaultMaskis true. - Only
UITableViewCellStateShowingEditControlMaskis true. - Only
UITableViewCellStateShowingDeleteConfirmationMaskis ture. - Both
UITableViewCellStateShowingEditControlMaskANDUITableViewCellStateShowingDeleteConfirmationMaskare 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!