craiggrummitt.com
Making a simple toggle button with UIButton
It’s actually pretty straightforward to turn a UIButton into a toggle button. (checkbox, switch, whatever you prefer to call it!) We can make use of the isSelected property that UIButton inherits f…