解析iPhone项目中的.ics数据 [英] Parse .ics data in iPhone project

查看:163
本文介绍了解析iPhone项目中的.ics数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个iPhone应用程序,我想使用 libical 来解析.ics dat。 .ics文件或来自.ics文件的URL位置..

I am making an iPhone application and i want to use libical to parse .ics dat from an .ics file OR from the URL location of the .ics file..

首先,我想知道如何在我的项目中使用libical?如何将它添加到我的iphone项目等..我见过一些指南,但它们似乎是特定于OSX项目而不是iphone项目..

Firstly i want to know how i would go about using libical in my project? How to add it into my iphone project etc.. ive seen some guides but they seem to be specific to OSX projects and not iphone projects..

其次我要解析事件名称及其描述,所以我可以将事件名称/描述存储为变量..

Secondly i want to parse event names and their descriptions, so i that i can store the event names/ descriptions as variables..

我想知道这是否可以使用libical ..如果可以的话有人请大致告诉我如何实现这个...

I was wondering if this was possible using libical.. if so could someone please show me roughly how i may go about implementing this...

任何和所有信息都将非常感谢!

Any and all information will be very much appreciated!

感谢您的阅读

推荐答案

我知道这可能不是一个非常有用的答案 - 因为我能发布它对这个问题发表评论,很抱歉 - 但是ics数据文件相对容易解析。在文本编辑器中打开一个并看看,我之前已经实现了一个ics解析器,正是为了你正在尝试做的事情,花了我几个小时,并试图让所有类型的库编译使用了我更多在几个场合:))

I know it might not be a very helpful answer - posting it because i can't comment on the question, so sorry for that - but ics data files are relatively easily parsable. Open one in a text editor and take a look, i've implemented an ics parser before for exactly what you're trying to do, took me a couple of hours, and trying to get all sorts of libraries to compile used taken me more in a few occasions :)

这篇关于解析iPhone项目中的.ics数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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