Muhammad Zeeshan Anwar
Muhammad Zeeshan Anwar

Reputation: 146

Show data in rows and columns in IOS

I want to show my data in rows and columns. Number of columns are constant i.e 4, but number of rows are dynamic. How can I create such a table with 4 columns and multiple rows according to the data. Is there any API that could create table or what is the simple option for this?

Upvotes: 1

Views: 612

Answers (2)

Noor
Noor

Reputation: 2067

Use this control, customize according to your need, get link fom CocoaControl.comenter image description here

Upvotes: 0

Nikolai Ruhe
Nikolai Ruhe

Reputation: 81868

Two approaches:

  1. A UICollectionView (in conjunction with a flow layout) is made for this purpose.
  2. A tiny bit simpler but also more restricted: Using a UITableView with a custom cell that holds the four cells for each column.

Upvotes: 4

Related Questions