DLRadioButton icon indicating copy to clipboard operation
DLRadioButton copied to clipboard

Square radio button embedded in UITableView appear rounded. Only selecting it changes to square.

Open ghost opened this issue 7 years ago • 2 comments
trafficstars

2017-12-27-gif-00000086

I have some radio button for a survey module, for question with select at least one i put rounded radio button, question with select one i put square button.

As the GIF shows, the squared radio button is appearing rounded, only when i clicked on it, it turns square. Do i need to call any function to update uitableviewcell when it appear?

ghost avatar Dec 27 '17 09:12 ghost

I think you are reusing the same group of radio buttons for different cells. Try to put groups of radio buttons in an array and fetch them when updating table cells.

DavydLiu avatar Dec 29 '17 16:12 DavydLiu

Yeah. Searched online and find out that UIButton can't change state after it is initialised. Current new method im doing is set a rounded and rectangular button and show/hide.

ghost avatar Jan 05 '18 04:01 ghost