That is just a quick sample if you were to create the switch in code. If you created it in IB you just need to create an IBOutlet and modify the transform property of the IBOutlet. By the way the transform above makes the switch half its normal size.