IOS Where To Persist Current User from Back-end

141 views Asked by At

I am using an IOS app with a Rails Back-end. When the user opens the app, I want to query its profile from the server and set a current user method in order to call it somewhere else in the app without querying it again from the server.

I would also like to store it so that the profile is saved to the disk and can viewed offline, including the profile picture.

What is a good storage solution for the current user and its profile picture? The different solutions I am thinking about are Core Data (because I already use in the app), and NSKeyedArchiver.

Any recommendations or ideas on which solution to adopt?

0

There are 0 answers