以编程方式检索用户的 App Store 昵称
Retrieve the user's App Store nickname programmatically
有谁知道获取用户App Store昵称的方法吗?我知道 CloudKit 方法 fetchUserRecordIDWithCompletionHandler,但是这个 returns 用户的名字和姓氏,而不是用户使用的昵称,例如在 iTunes 上写评论。
谢谢
使用 fetchUserRecordIDWithCompletionHandler 和 discoverUserInfoWithUserRecordID 是获取当前 iCloud 用户信息的唯一方法。
除此之外,您必须注意,从 iOS 9 开始,您将不再获得名字和姓氏,只有显示名称。有关详细信息,请参阅 https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference/CKDiscoveredUserInfo_class/index.html#//apple_ref/swift/cl/c:objc(cs)CKDiscoveredUserInfo
有谁知道获取用户App Store昵称的方法吗?我知道 CloudKit 方法 fetchUserRecordIDWithCompletionHandler,但是这个 returns 用户的名字和姓氏,而不是用户使用的昵称,例如在 iTunes 上写评论。 谢谢
使用 fetchUserRecordIDWithCompletionHandler 和 discoverUserInfoWithUserRecordID 是获取当前 iCloud 用户信息的唯一方法。
除此之外,您必须注意,从 iOS 9 开始,您将不再获得名字和姓氏,只有显示名称。有关详细信息,请参阅 https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference/CKDiscoveredUserInfo_class/index.html#//apple_ref/swift/cl/c:objc(cs)CKDiscoveredUserInfo