Search code examples
iosdelphidelphi-xe5delphi-xe6

How to check iOS version delphi xe5/xe6


Is there a way to check the iOS version within a Delphi app? I would like to create specific piece of code for iOS7 and iOS6 in Delphi XE6.


Solution

  • You can use TOSVersion record in System.SysUtils.

    if TOSVersion.Check(7, 0) then //Os is iOS 7
    

    Also you can find sample for iOS here.