开发者

How to save conversation history in instance messager?

I'm constructing an internal instance messager app which is very simil开发者_JS百科ar to whatapps. Can someone give me suggestions of how to save the conversation in the local device. Is it ok to archiver the whole UIViewController to save all the messages?

Thanks so much.


You have a number of choice , like you could store in sqllite database , As object using NSUserDefaults and as file in your application sandbox.

And file could be either xml or simple txt format.

Updated:

How to store custom objects in NSUserDefaults


No you need to save history either into NSUserDefaults or save into Sqlite Database.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜