編輯

共用方式為


UIDevice.SystemVersion Property

Definition

Operating system version.

public virtual string SystemVersion { [Foundation.Export("systemVersion", ObjCRuntime.ArgumentSemantic.Strong)] get; }
member this.SystemVersion : string

Property Value

The current operating system version.

Attributes

Remarks

Application developers must not assume that this string can be directly parsed into a floating point number, since iOS versioning often involves multiple delimiters, such as with "7.0.4".

Application developers can use CheckSystemVersion(Int32, Int32) to ensure that the current operating system is equal to or exceeds a particular major/minor release.

This can be used from a background thread.

Applies to