开发者

Need advice for Implementing Caching in iPhone Programming, with Three20/ASIHTTPRequest or CoreData

I'm currently working on a Project that uses Three20 as the b开发者_JAVA百科ase framework, but I found out that ASIHTTPRequest handles Form Requests so easily so that's why I incorporated it in my Project.. And then I also found out that I need to cache my Session Key so that when my application terminates I can still check that my user is Logged in when the application launches back (and then again I'll be implementing it using basic Core Data)

As you can see there's a lot of Caching functionality in my Project, and I can't find out what is the best way, or which is the best way?

I don't know also how caching works in both Three20 and ASIHTTPRequest.. I really wanted to use their caching functionalities because I'll be caching also feeds and more


If you're looking to store user credentials, it's best to store them in the Keychain. You can do this via the Keychain Services API. There are plenty of examples out there that show how to use this API. Example 1. Example 2.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜