{ ... } if (!(hideSw.on != [defaults boolForKey:@"visible"])) ͷؒҧ͍͡Όͳ͍ͷʁͬͯ৺͞Ε͍ͯΔ Logical not is only applied to the left hand side of this comparison ˞9DPEFͰ͜ͷྫͰܯࠂ͕ग़·ͤΜͰͨ͠ UISwitch *hideSw = ... if ((!hideSw.on) != [defaults boolForKey:@"visible"]) { ... } ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹʜͷͰ ΧοίΛ͚ͭͯͦ͏͡Όͳ͍ͱҙࢥදࣔ