문제

I want to know what iCloud account is configured the iOS device, Is there any API to get the iCloud account details in iOS 7?

Thanks

도움이 되었습니까?

해결책

No. You have no access to any account details. The most you can do is

  • Find out if iCloud is configured by calling [NSFileManager ubiquityIdentityToken]
  • Find out if the account has changed by calling that method again to see if the value has changed or by observing NSUbiquityIdentityDidChangeNotification.

You do not get to find out the user's account name or any other details about their account. None of that is relevant to using iCloud.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top