Creating a table with rows and columns in iOS

I would like to create a table in iOS that has several rows and columns. We also have the ability to add amounts to the table. A screenshot of the sample table is located below: enter image description here

Cells must be editable. Is there a way to implement this using the default UITableView in iOS. Or it is useful to create it using buttons or text fields, etc.

+4
source share
4 answers

This would not be a simple solution, but you can use a rotated (horizontal) UITableView inside each cell of the table (vertical), just like the Pulse application. Using only shortcuts simplifies management, but viewing "excel" may be more difficult if you plan to handle events such as row selection, sorting ...

Here are two tutorials on using horizontal tables (http://www.raywenderlich.com/):

part 1 - part 2

+3
source

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

+2
source

GitHub has an open source solution that supports iOS 4.3+ if you are still looking for options. I have not actually used it, but it looks like this works as a UICollectionView.

PSTCollectionView

+1
source

I created a table structure like this using tableview and scrollview. Think what might be good for you

Here you can get a sample project.

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

0
source

Source: https://habr.com/ru/post/1435917/


All Articles