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:
The cells needs to be editable. Is there a way to implement this using the default UITableView in iOS. Or Is it a good to create it using buttons or textfields etc?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With