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
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
to Realm
Anyone have any advice on how to accomplish this without it being too painful?
Reply all
Reply to author
Forward
0 new messages