Instance Method

setBool:forKey:

Sets a Boolean value for the specified key in the key-value store.

Declaration

- (void)setBool:(BOOL)value forKey:(NSString *)aKey;

Parameters

value

The Boolean value to store.

aKey

The key under which to store the value. The length of this key must not exceed 64 bytes using UTF8 encoding.

See Also

Setting Values

- setArray:forKey:

Sets an array object for the specified key in the key-value store.

- setData:forKey:

Sets a data object for the specified key in the key-value store.

- setDictionary:forKey:

Sets a dictionary object for the specified key in the key-value store.

- setDouble:forKey:

Sets a double value for the specified key in the key-value store.

- setLongLong:forKey:

Sets a long long value for the specified key in the key-value store.

- setObject:forKey:

Sets an object for the specified key in the key-value store.

- setString:forKey:

Sets a string object for the specified key in the key-value store.