Load UITableView From CSV Database File?

2019-09-15 09:16发布

问题:

Is it possible to load a UITableView with a database in CSV format? Or is there an easy way to convert this to a .plist first or something similar? Any advice would be helpful. Thanks.

回答1:

And if you want to know how to read a CSV file, I've written a library to do that:

https://github.com/davedelong/CHCSVParser

Please remember that using it means you must abide by the license under which the code is made available.



回答2:

You can load UITableView using any sort of data you want. Just create a datasource that implements UITableViewDataSource.

This documentation is also helpful: Table View Programming Guide for iOS