2015-04-03 23 views

回答

0

無線網絡密碼存儲在系統鑰匙串(或登錄鑰匙串,取決於操作系統版本) - 這是一個堆棧交換問題:https://apple.stackexchange.com/questions/56130/how-to-find-wifi-password-on-my-mac-which-is-already-connected

從ObjectiveC中,您可以使用Apple提供的API訪問鑰匙串:https://developer.apple.com/library/mac/documentation/Security/Reference/keychainservices/index.html。特別是對於您的任務,我建議使用https://developer.apple.com/library/mac/documentation/Security/Reference/keychainservices/index.html#//apple_ref/c/func/SecKeychainFindGenericPassword功能。