What does this statement mean?
isChecked = isChecked ^ 1;
isChecked is a BOOL.
isChecked
BOOL
"^" is called an exclusive OR or XOR operation. In this case, it will change boolean from true to false and vice-versa.
To learn more on this, check this link