ios - UITableView row separator issue -


my app composed of uitableview dynamic height rows, autolayout (programmatically).

my uitableview doesn't have separator, draw them myself on each row (just 1 uiview of 1px...). uitableview set without separator.

this works fine. random time, when there lot of different row height in view, separation appears between row. make background (orange) visible , bug (see image below).

i kinda think it's bug intern ios while managing height of each rows, value close 0 system try display , show 1px height line.

i'm open every suggestion solution.

edit

i added bigger picture shows problem. can't add cellforrowatindexpath code because complex. can :

  • cells 1, 3, 5 dynamic height considering content.
  • cells 3, 5 of same kind, , reusable between them
  • cells 2, 4 of same kind, , reusable between them, , fixed height
  • if don't display rows 2 , 3, problem doesn't show (but can other different situation, it's kinda random).

important note : problem doesn't show on simulator same data.

edit 2

here's how set white background cell

self.backgroundcolor = [uicolor clearcolor];     self.backgroundview = [[uiimageview alloc] initwithimage:[uiimage imagewithcolor:[uicolor whitecolor]]]; 

separator issue

perhaps problem caused code providing dynamic cell heights decimal fraction less 1 retina pixel (0.5). try rounding value return in - tableview:heightforrowatindexpath: (if don't round already) , see if helps.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -