Contents

set(_:forKey:)

Sets the value of the specified key to a Boolean value.

Declaration

func set(_ value: Bool, forKey aKey: String)

Parameters

  • value:

    The Boolean value to save to the iCloud key-value store.

  • aKey:

    The key to associate with the value.

Discussion

This method places the Boolean value in an NSNumber type before writing the key and value to the store.

See Also

Setting values