What does this statement mean?
isChecked = isChecked ^ 1;
isChecked is a BOOL.
isChecked
BOOL
^ is the exclusive or operator.
^
In your example it is used to create a toggle - isChecked will be set only if isChecked was previously unset.