iOS開發獲取本機手機號碼


最近有個奇葩需求,用戶登錄返回手機號匹配本機號碼相同才可以登錄,嚇得我虎軀一震,經了解,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.

百度翻譯結果:

“出於安全原因,蘋果操作系統限制了應用程序(包括其偏好和數據)在文件系統中的一個獨特位置。這個限制是被稱為應用程序的“安全”的安全特性的一部分,該“網絡”是一組細粒度的控制,限制了應用程序的訪問文件、偏好、網絡資源、硬件等等。“該設備的電話號碼是不可用在您的應用程序的容器中。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM