Declaration

func setCustomValue(_ value: Any?, forKey key: String)

Declaration

- (void) setCustomValue:(id) value forKey:(NSString *) key;

Declaration

setCustomValue_forKey_(value: object, key: str)

Parameters

value

The value to store, or nil to remove the custom parameter.

key

The custom parameter name.

Discussion

An existing custom parameter with the same name is updated. Otherwise a new custom parameter is added. Passing nil removes the first matching custom parameter.

See Also

Custom Parameters