The most secure way would be to use keychain
services as the data is encrypted but in your scenario it seems a bit over kill. I would recommend either just using NSUserDefaults
or an sqlite database
I wouldn't really recommend storing in a plist
as this can be accessed really easily.
But this all depends on the data you are getting, if it was just uuid
and mobile number then NSUserDefaults
would do probably, whereas if you were getting usernames and passwords and other personal data I would looking a mix of keychain
and sqlite database
.
Also you could use coredata file to store user data but seems a bit over kill as well for for such little data.
Just a little note you are actually not allowed to get the iPhones mobile phone number programmatically, getting this would use Private APIs that Apple would reject your app for using.
2.5 Apps that use non-public APIs will be rejected
So you would have to ask he user for this.