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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift