skip to Main Content

I am trying to create a UITableView that looks like the image below, but not quite sure how to set it up. Should I create multiple custom cell, should I use sections? Or what do you guys think? Appreciate any help.

Image designed in photoshop (the blue once are buttons):
enter image description here

2

Answers


  1. Your design can be accomplished as follows:

    • Create a new section for each part of the image where you placed the text "Some text here"
    • For the text "Lasted updated: …", you could use a section footer (part of UITableViewDelegate protocol)
    • For the 1st and 3rd section, you could use a standard UITableViewCell with a detaillable
    • For the 2nd section, you could use a UITableViewCell with a colored background
    Login or Signup to reply.
  2. You have two options:

    1- Create sections dependent on the number you need in your case 3 sections and dependent on section number show the cell

    2- Create two custom cells .xib and each one has its own design and at each time you are doing cellForItemAt check on the cell index for the row and show the cell you need.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search