如何检查iOS版本的Delphi XE5 / XE6 [英] How to check iOS version delphi xe5/xe6

查看:68
本文介绍了如何检查iOS版本的Delphi XE5 / XE6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Delphi应用程序中检查iOS版本?我想在Delphi XE6中为iOS7和iOS6创建特定的代码。

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.

推荐答案

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

You can use TOSVersion record in System.SysUtils.

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

您还可以在此处找到适用于iOS的示例。

Also you can find sample for iOS here.

这篇关于如何检查iOS版本的Delphi XE5 / XE6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆