0
尋找文檔: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.htmlNSDataWritingFileProtectionComplete在OS X
我看到NSDataWritingFileProtectionComplete是「可在OS X v10.8以及後來的」但是當我嘗試在我的代碼中使用它,我有一個編譯錯誤。檢查NSData標題我發現此功能僅適用於iOS:
NSDataWritingFileProtectionComplete NS_ENUM_AVAILABLE_IOS(4_0)
我犯了錯誤或文檔不正確?
非常感謝! – user1204395