I am currently working on an iPhone-App which needs to store an access-token somehow. I am just saving it inside the NSUserdefaults but i dont think it is safest way of persisting sensitive data like this. So my question now is:
What is the best and safest way of storing data like this on an iOS-Device?
Almost.
NSUserDefaultsuses plaintext for storing data, so it is insecure. If you want to be a bit safer, you can store the data in the keychain (however, even this considered-to-be-secure storage can be easily dumped…)