I have a UItableview with cells. Some cells have uilabels and some have uibuttons. The UIbuttons are created whenever the first character in an array is “^”. However, the uibuttons repeat when i scroll down (appearing over the uilabel).. and then multiply over the uilabels when I scroll up. Any clues why?
I have a UItableview with cells. Some cells have uilabels and some have uibuttons.
Share
Actaully every time the section is scrolled and rows are loaded, all the labels and ui components are added to the cell at run time, you need to clear all the views which are added in the cell, everytime when your cell is dequeued and is not nil, See the following example: