简体   繁体   English

有没有一个简洁的方法来判断iPhone / iPad是否已被用户设置了密码

[英]Is there a neat way to tell if iPhone/iPad has been set a passcode by user

I have asked this question long before. 我很久以前就问过这个问题。

I know it maybe impossible, but as far as I know, 'Find my friends' has this features and it works just so well, so I wonder if now there is a neat and legitimate way of doing that. 我知道这可能是不可能的,但据我所知,“找我的朋友”有这个功能,而且效果很好,所以我想知道现在是否有一种干净利落的合法方式。

Just because Apple's Find My Friends app has a feature does not mean the API is publicly available. 仅仅因为Apple的“查找我的朋友”应用程序具有某项功能并不意味着该API已公开发布。 If this app is not an enterprise app, you can't use private APIs and have your app put on the app store. 如果此应用不是企业应用,则您无法使用私有API并将应用放在应用商店中。 If it is an enterprise app, you may want to look into setting up a configuration profile for the device. 如果是企业应用程序,您可能需要考虑为设备设置配置文件。 In order to access the VPN for my employer, I had to install a configuration profile (visible in Settings) that requires a passcode to be entered every time I unlock my iPad. 为了访问我的雇主的VPN,我必须安装配置文件(在“设置”中可见),每次我解锁iPad时都需要输入密码。 Without that, I cannot VPN into their intranet. 没有它,我无法VPN进入他们的内部网。 TestFlight uses a similar approach with profiles to register a device to receive builds. TestFlight使用与配置文件类似的方法来注册设备以接收构建。 I would check out this link from Apple on setting up these sorts of profiles for enterprise applications: http://www.apple.com/iphone/business/resources/ 我会查看Apple的这个链接,为企业应用程序设置这些类型的配置文件: http//www.apple.com/iphone/business/resources/

There's no way to detect this programmatically from within an iPhone SDK-based application. 无法从基于iPhone SDK的应用程序中以编程方式检测到此问题。 If you need to, you should file an enhancement request with Apple at http://bugreporter.apple.com 如果需要,您应该在http://bugreporter.apple.com上向Apple提交增强请求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM