onegray / RadioButton-ios

Lightweight RadioButton class for iOS
MIT License
377 stars 68 forks source link

How to setTitle for this custom? #3

Closed duy84 closed 9 years ago

duy84 commented 9 years ago

Hi guy,

I cannot setTitle for this custom button in my code.

How can I do that? Could you please explain more for us?

Thanks

onegray commented 9 years ago

Hi, just do it in the same way as for standard UIButton. Here is an example how to create RadioButton programmatically: https://github.com/onegray/RadioButton-ios/blob/sample/ViewController.m#L34-L44