Why ubiquityIdentityToken returns nil?

半世苍凉 提交于 2019-12-18 09:09:08

问题


NSFileManager.defaultManager().ubiquityIdentityToken on some device in some case returns nil, even I set up iCloud Documents in Capabilities and I am logged in to iCloud on device. How reliable operation of the ubiquityIdentityToken do you met? Am I doing something wrong?

On iPhone it returns correctly with a real token, but on iPad it returns with nil, even if I am logged in.


回答1:


To get token, you need additionaly to turn on iCloud Drive on device. If it is off ubiquityIdentityToken will return nil.



来源:https://stackoverflow.com/questions/25898771/why-ubiquityidentitytoken-returns-nil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!