I dont know why my cell content is overlapping on cell selection in multi selection mode. Please help. Screenshot is attached in the link. !(https://drive.google.com/file/d/0B6PMl-B4JKuCLWhaMEUwVGlvMFE/view?usp=sharing)
Asked
Active
Viewed 119 times
0
-
could you elaborate exactly what you mean by overlapping? They look fine on the screenshot, dont' they? – Gil Sand Jun 15 '16 at 07:37
-
maybe just add a separator to make it look better (the tableview has a separator property) – Gil Sand Jun 15 '16 at 07:38
-
Basically the problem is blue box is not appearing on selection. only labels are appearing.. same thing has been happened for orange color dot also. – user3350387 Jun 15 '16 at 08:20
-
oh alright. You need to hide/show that using a state for your cell, or use two different custom cells – Gil Sand Jun 15 '16 at 08:21
-
Can you please explain how to hide and show or point me to some sample code if possible – user3350387 Jun 15 '16 at 09:36
-
Got the solution thanks every one. [link](http://stackoverflow.com/questions/6745919/uitableviewcell-subview-disappears-when-cell-is-selected) – user3350387 Jun 15 '16 at 09:57
2 Answers
0
You can solve it by using two different customized UITableViewCell
and two identifiers.
UITableView
object maintains a queue (or list) of the currently reusable cells, each with its own reuse identifier, and makes them available to the delegate in the dequeueReusableCellWithIdentifier
: method.

Suraj Sukale
- 1,778
- 1
- 12
- 19
0
'overlapping' you mean by gray selection color then you can set table selection style to None.
cell.selectionStyle = UITableViewCellSelectionStyleNone;
If your cell is reusing unwanted style, then implement -(void)prepareForReuse
in your custom cell class. And reset your cell in prepareForReuse() function. so it will reset the image view before reuse the cell.

Arun Kumar P
- 820
- 2
- 12
- 25
-
I have tried changing style to None. Now i cannot see selected check color. Its looks like white color. Please suggest how to update it. – user3350387 Jun 15 '16 at 07:09