An iOS demo project that shows how to create a custom UIButton subclass that acts like a chckbox.