如何检查iOS版delphi xe5 / xe6

时间:2014-11-05 13:48:30

标签: ios delphi delphi-xe5 delphi-xe6

有没有办法检查Delphi应用程序中的iOS版本?我想在Delphi XE6中为iOS7和iOS6创建特定的代码。

1 个答案:

答案 0 :(得分:5)

您可以在System.SysUtils中使用TOSVersion记录。

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

您也可以找到适用于iOS here的示例。