读取.csv文件的iPhone应用程序 [英] iPhone app that reads .csv file

查看:425
本文介绍了读取.csv文件的iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS应用程式可以读取该装置上放置的档案,例如一个CSV文件。

Can an iOS app read a file that has been placed on that device e.g. a CSV file.

所以这个想法是当你在家里,你创建一个项目列表的文件,或者你的电子邮件,等等,然后你的电脑

So the idea is when you're at home you create the file with a list of items or you get emailed it etc on your PC and then you place this file (in the correct format) on the device which reads it.

这是否可以?

推荐答案

您可以读取CSV数据,但将文件放在设备上将涉及某种Web服务。没有办法在没有从Web服务器中获取数据的情况下向应用程序添加数据。但是如果你有一个web服务器可以托管csv文件,然后打开和阅读它是相当简单。

You can read CSV data but "place the file on the device" would have to involve a web service of some sort. There is no way to add data to an application without getting in a from a web server. But if you have a web server that can host the csv file then opening and reading it is fairly simple.

这覆盖大多数o it
导入csv数据(SDK iphone)

this covers most o it Import csv data (SDK iphone)

NSString stringWithContentsOfURL:encoding:error

将照顾其余

这篇关于读取.csv文件的iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆