UASystemVersion

@interface UASystemVersion : NSObject

The UASystemVersion class provides system version utilities.

  • Returns a system version instance.

    Declaration

    Objective-C

    + (nonnull instancetype)systemVersion;
  • Returns current system version. - returns: A string for the current system version.

    Declaration

    Objective-C

    - (nonnull NSString *)currentSystemVersion;

    Swift

    func currentSystemVersion() -> String

    Return Value

    A string for the current system version.

  • Compares current system version to provided system version and returns YES if system version is greater than or equal to the provided version, otherwise returns NO.

    Declaration

    Objective-C

    - (BOOL)isGreaterOrEqualToVersion:(nonnull NSString *)version;

    Swift

    func isGreaterOrEqual(toVersion version: String) -> Bool

    Parameters

    version

    Version string in the following format: major.minor.patch i.e. 11.11.11.

    Return Value

    YES if provided version is equal to greater to system version, otherwise NO..