bool(forKey:)
Returns the Boolean value associated with the specified key.
Declaration
func bool(forKey aKey: String) -> BoolParameters
- aKey:
The key to retrieve from the iCloud key-value store.
Return Value
The Boolean value associated with aKey, or false if the key isn’t present.
Discussion
This method automatically coerces certain values to their equivalent Boolean meanings. For example, it coerces the numbers 1 and 1.0, and the strings “true”, “YES”, and “1” to the value true.