Best radio-button implementation for IOS

I have some thoughts on how the best radio button implementation should look like. It can be based on UIButton class and use it’s ‘selected’ state to indicate one from the group. The UIButton has native customisation options in IB, so it is convenient to design XIBs.
Also there should be an easy way to group buttons using IB outlet connections:

I have implemented my ideas in this RadioButton class. Works like a charm:

Download the sample project.

Leave a Comment