English 中文(简体)
如何阅读CSV使用OS的档案
原标题:How to read a CSV file using iOS
  • 时间:2012-01-12 07:28:25
  •  标签:
  • ios
  • csv

我必须开发一个能够读从一个领域的CSV档案中的数据的SOS应用程序。 是否有能够帮助我这样做的标准的预报器? 我无需下载,而只是读到档案,因为每两分钟都将更新档案。

最佳回答

I recommend Dave DeLong s CHCSVParser library for parsing.

问题回答

您将不得不下载文件,这是从遥远的东道方下载文件的唯一途径。 A CSV 文件是一个文本文件,数据由 com( , )。 从遥远的东道方下载档案,逐行读到档案线,把从档案中读的线体分开;

例如:

1,2,3,4,1,2,3 ...Line 1

(a) 将不同的数值加成一阵,其结果是:

array_line_one = {1,2,3,4,1,2,3};




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签