Load UITableView From CSV Database File?

北城以北 提交于 2020-01-17 05:12:14

问题


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



来源:https://stackoverflow.com/questions/6902629/load-uitableview-from-csv-database-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!