Edit

Share via


NSUserDefaults.FloatForKey(String) Method

Definition

The float value for the specified key.

[Foundation.Export("floatForKey:")]
public virtual float FloatForKey (string defaultName);
abstract member FloatForKey : string -> single
override this.FloatForKey : string -> single

Parameters

defaultName
String

The key name used to lookup the stored value.

Returns

The double representation for the value stored, or zero if the key is not present.

Attributes

Remarks

Applies to