Parsing a .CSV file


sorry if thread in wrong board, couldn't find board specially ios development.

i've got ios development swift, , i'm looking writing app overlays points of interest, onto map.

i've got data set downloaded, although i'm not sure how can parse set can create object each data entry?

can copy of file in either .csv, .kml or .json.

can suggest method of parsing file swift file?
 

you mean parsing file swift data structure.
if can have json you'll able parse via api nsjsonserialization.jsonobjectwithdata , you'll array or dictionary (i suppose array).
if prefer csv you'll have parse splitting file strings separated \n\r each field splitting each line , or ; or | or whatever used in csv.
using json more straightforward, file size might increase.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

OS X El Capitan on Unsupported Macs

[SOLVED] SFOTT usb key not bootable Mavericks

Fernando Torres: One of the all-time greats?