最近有个奇葩需求,用户登录返回手机号匹配本机号码相同才可以登录,吓得我虎躯一震,经了解,iOS7后不越狱实现不了
"For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox." The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on." The device's phone number is not available within your application's container.
百度翻译结果:
“出于安全原因,苹果操作系统限制了应用程序(包括其偏好和数据)在文件系统中的一个独特位置。这个限制是被称为应用程序的“安全”的安全特性的一部分,该“网络”是一组细粒度的控制,限制了应用程序的访问文件、偏好、网络资源、硬件等等。“该设备的电话号码是不可用在您的应用程序的容器中。