有没有一种巧妙的方法来判断 iPhone/iPad 是否已由用户设置密码
这个问题我很久以前就问过。
我知道这可能是不可能的,但据我所知,“查找我的朋友”具有此功能并且效果非常好,所以我想知道现在是否有一种简洁合法的方法可以做到这一点。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅仅因为 Apple 的“查找我的朋友”应用程序具有某个功能,并不意味着该 API 是公开可用的。如果此应用程序不是企业应用程序,则您无法使用私有 API 并将您的应用程序上架到应用程序商店。如果它是企业应用程序,您可能需要考虑为设备设置配置文件。为了为我的雇主访问 VPN,我必须安装一个配置文件(在“设置”中可见),每次解锁 iPad 时都需要输入密码。没有它,我无法通过 VPN 进入他们的内网。 TestFlight 使用类似的配置文件方法来注册设备以接收构建。我会查看 Apple 提供的有关为企业应用程序设置此类配置文件的链接: http:// /www.apple.com/iphone/business/resources/
Just because Apple's Find My Friends app has a feature does not mean the API is publicly available. If this app is not an enterprise app, you can't use private APIs and have your app put on the app store. 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. Without that, I cannot VPN into their intranet. TestFlight uses a similar approach with profiles to register a device to receive builds. 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/
无法从基于 iPhone SDK 的应用程序中以编程方式检测到这一点。如果需要,您应该通过 http://bugreporter.apple.com 向 Apple 提交增强请求
There's no way to detect this programmatically from within an iPhone SDK-based application. If you need to, you should file an enhancement request with Apple at http://bugreporter.apple.com