I'm making an ios application. I need to add the "Help, FAQ and Contracts" sections in my customer's web site to the application. These data need to be accessed offline so I can't use a UIWebView that loading these section's urls. These sections contain a lot of data and I don't think it is a good idea to use Core Data.
我在做一个ios应用。我需要在客户的web站点中添加“帮助、常见问题和合同”部分到应用程序中。这些数据需要离线访问,所以我不能使用UIWebView来加载这些部分的url。这些部分包含很多数据,我认为使用核心数据不是一个好主意。
I think the best solution is to add these sections to application bundle (as html files) and show them using a UIWebView?
我认为最好的解决方案是将这些部分添加到应用程序包(作为html文件)并使用UIWebView显示它们?
I don't know is there a more efficient way and am I doing a terrible job?
我不知道有没有更有效的方法,我做得很糟糕吗?
1 个解决方案
#1
1
Core Data is really useful when you have relationships between different Entities and you need to query the data like in "give me all the invoices from this date to that date".
当你在不同的实体之间建立关系时,核心数据是非常有用的,你需要查询数据,比如“给我从这个日期到那个日期的所有发票”。
In your case, you use static content to display the help screen so I think HTML files or text files in the main bundle is the best option.
在您的例子中,您使用静态内容来显示帮助屏幕,所以我认为主包中的HTML文件或文本文件是最好的选择。
#1
1
Core Data is really useful when you have relationships between different Entities and you need to query the data like in "give me all the invoices from this date to that date".
当你在不同的实体之间建立关系时,核心数据是非常有用的,你需要查询数据,比如“给我从这个日期到那个日期的所有发票”。
In your case, you use static content to display the help screen so I think HTML files or text files in the main bundle is the best option.
在您的例子中,您使用静态内容来显示帮助屏幕,所以我认为主包中的HTML文件或文本文件是最好的选择。