What does this statement mean?
isChecked = isChecked ^ 1;
isChecked is a BOOL.
isChecked
BOOL
The "^" is an exclusive OR operation, so 0 flips to 1, and 1 flips to zero. The result should be the same as isChecked = !isChecked.
isChecked = !isChecked