Creating a Table with Rows and Columns in iOS

后端 未结 4 736
渐次进展
渐次进展 2021-02-10 04:14

I would like to create a table in iOS that have some rows and columns. We also have an option to add amounts to the table. A screenshot of the sample table is posted below:

相关标签:
4条回答
  • 2021-02-10 04:27

    It would not be an easy solution but you can use a rotated (horizontal) UITableView inside each cell of a table view (vertical) just like the Pulse app. Using only labels makes it easy to manage but the "excel" look could be harder if you're planning handling events like selecting rows, sort...

    Here's a two part tutorial on how to use horizontal tables (http://www.raywenderlich.com/) :

    part 1 - part 2

    0 讨论(0)
  • 2021-02-10 04:31

    I created a table structure similar to this using tableview and scrollview .Think that could be helpful to you

    You could get the sample project here

    https://drive.google.com/folderview?id=0B-brvnZfBXwTU21VbmNNcnRSU2M&usp=sharing

    0 讨论(0)
  • 2021-02-10 04:33

    In ios6 you can use a UICollectionView with a UICollectionViewFlowLayout to archive this. A UICollectionView works very similar to a UITableView, but gives you more control over how the cells should be displayed and aligned.

    0 讨论(0)
  • 2021-02-10 04:39

    There is an open source solution on GitHub that supports iOS 4.3+ if you are still looking for options. I haven't actually used it, but it looks like works like UICollectionView.

    PSTCollectionView

    0 讨论(0)
提交回复
热议问题