The switch control is used to display the state of a Boolean object in iOS8. You use the UISwitch class to create and manage the On/Off buttons. In this tutorial we will change the state of the switch using a button and also we will display the current state of the switch. This tutorial is written in Swift so you will need Xcode 6. It can be downloaded at Apple’s developer portal.