0

Is it possible to create multiple columns in UITableView, as my requirement demand me to do this, If it is possible how i can i resolve this issue.

Thanks in advance.

user7388
  • 1,741
  • 2
  • 19
  • 25
username0013
  • 79
  • 1
  • 8
  • Yes, it is possible. You can create custom class for UITableViewCell and use it in method cellForRowAtIndexPath OR you can create label or any and subview in cell.contentView. – user7388 Jun 08 '13 at 10:02

3 Answers3

2

You may use UICollectionView for that. Or simply build each UITableViewCell with needed labels and elements in cycle with columns count

nerowolfe
  • 4,787
  • 3
  • 20
  • 19
2

First thing you need to do is take a look at UITableViewCell Documetation and Read the Content given there. If you read it properly, you'll get the Answer in the form of these Steps :

  1. Create Custom UITableViewCell with UILabel equals to Number of Columns.
  2. Use this UITableViewCell in your UITableView.
  3. Fill each Row of UITableView with your Database Table Rows.

Tutorials to Integrate custom UITableViewCell :

  1. Creating custom UITableViewCell from XIBs – step by step tutorial
  2. Crafting Custom UITableView Cells

GoodLuck !!!

Bhavin
  • 27,155
  • 11
  • 55
  • 94
0

If you will use CustomCell there will be scrolling issue. So the best way to do this is UICollectionView for ios6. I did it with CustomCell also so if you are working for ios5 I will guide you.

Prateek Prem
  • 1,544
  • 11
  • 14