开发者

How to save conversation history in instance messager?

开发者 https://www.devze.com 2023-03-14 22:45 出处:网络
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 arc

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

精彩评论

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