Sets a string object for the specified key in the key-value store.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Foundation
Declaration
Parameters
aString
The string you want to store. The total size (in bytes) of the string must not exceed the per-key size limits.
aKey
The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.