What does this statement mean?
isChecked = isChecked ^ 1;
isChecked is a BOOL.
isChecked
BOOL
Everyone is saying it XORs the bool-- that's true-- but the purpose here is that it's toggling the bool.
The advantage of doing a bitwise toggle like this is speed and the ability to fiddle bits in extreme detail.
for more Bitwise Operators