Print the switch status or boolean in iOS Swift


        
Check the switch status.

Code:
print("Check ", (switch.isOn) ? "True" : "false")


Print the Boolean value.

Code:
print("Check ", (BoolVariable) ? "True" : "false")

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift