NSUserDefaults.SetFloat(Single, String) Method

Definition

Sets a float at the specified key.

[Foundation.Export("setFloat:forKey:")]
public virtual void SetFloat (float value, string defaultName);
abstract member SetFloat : single * string -> unit
override this.SetFloat : single * string -> unit

Parameters

value
Single

Floating point value to store.

defaultName
String

The key name used to store the value.

Attributes

Remarks

Applies to