How to perform a "migration" from NSUserDefaults to Realm?
113 views
Skip to first unread message
Damian Esteban
unread,
Apr 7, 2016, 10:50:27 AM4/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Realm
I've been using Realm more and more (and loving it) and I would like to stop using `NSUserDefaults`and replace it with Realm for most of the user data that I'm storing in the app. Of course the issue is that I have around 700 users who all have had their data stored with `NSUserDefaults`. Has anyone performed this kind of "migration" before (of course it isn't a real migration).
Perhaps I could use a method in the `AppDelegate` to write the data I have stored in `NSUserDefaults`in Realm?
Damian Esteban
unread,
Apr 10, 2016, 11:29:55 PM4/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Realm
Anyone have any advice on how to accomplish this without it being too painful?