Resolved Where is this line in the cell coming from???

Discussion in 'iOS Programming' started by dantastic, Feb 10, 2011.

  1. dantastic, Feb 10, 2011
    Last edited: Feb 15, 2011

    dantastic macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
    #1
    There's a nifty wal;kthrough of having 2 buttons blended into a grouped tableview over at http://meeu.me/blog/two-buttons-uitableview

    This is exactly what I need so I followed the guide and it looks good except a top line of the cell is showing.

    If you have a peek at the screen shot, I've commented out the part where I'm setting a background colour and I've also made the buttons a wee bit smaller just to show the line itself.

    It's the top line surrounding the cell! I've tried to make the tableViewCell, the view, everything, bigger.

    Any ideas how I can get rid of the line???

    -----------------------------------------------------------------

    Resolution.

    In the UITableView - make sure to set the separator not to be single line etched.
     

    Attached Files:

  2. forum user macrumors regular

    Joined:
    Aug 28, 2008
    #2
    that could be the view border, or view.layer.border.
     
  3. dantastic thread starter macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
    #3
    Thanks forum user, I do appreciate your help here. I am still playing with the borders here but I haven't found the correct way yet.

    PS. The method in the link I posted is rubbish. Don't use it. If you add cells to the table this cell won't render right. The effect can easily be achieved in IB and all cells will render properly.

    (You still get that annoying line though...)
     
  4. dantastic thread starter macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
    #4
    Resolved!

    After looking a bit harder it would appear that the top line in every section of my table had a slightly thicker line, like a shadow.

    I was blindly looking at my cell thinking it was something wrong there.

    Turned out that my table was using single line etched as separator. Once changed to single line for the UItableview the nasty line went away. :p
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    Great! Sounds like a good opportunity to use the new Resolved thread prefix. ;)
     
  6. dantastic thread starter macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
  7. forum user macrumors regular

    Joined:
    Aug 28, 2008
    #7
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
  9. forum user macrumors regular

    Joined:
    Aug 28, 2008
    #9
    yes please. I remembered that I had seen your thread, but could not find it again.
     

Share This Page