Cell styling iOS - tableView

Discussion in 'iOS Programming' started by AsgerLund, Jun 4, 2015.

  1. AsgerLund macrumors newbie

    AsgerLund

    Joined:
    Jun 4, 2015
    #1
    I want to style my cell in tableView to show three variables.

    I have make a mockup to show the idea:

    ex.jpg
    But I'm having trouble aligning the right column. Can you show me an example on how to do it in Swift?
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    Are you doing this via code? I would recommend it doing it via storyboard with a prototype cell and auto layout. You can create your layout that will handle the different length text in auto layout very easy.

    Screen Shot 2015-06-04 at 9.58.42 AM.png
     
  3. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #3

Share This Page