最近有個奇葩需求,用戶登錄返回手機號匹配本機號碼相同才可以登錄,嚇得我虎軀一震,經了解,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.
百度翻譯結果:
“出於安全原因,蘋果操作系統限制了應用程序(包括其偏好和數據)在文件系統中的一個獨特位置。這個限制是被稱為應用程序的“安全”的安全特性的一部分,該“網絡”是一組細粒度的控制,限制了應用程序的訪問文件、偏好、網絡資源、硬件等等。“該設備的電話號碼是不可用在您的應用程序的容器中。
