虽然没有配置帐户,但SLComposeViewController.isAvailableForServiceType返回true

时间:2015-07-12 02:10:53

标签: facebook xcode7 ios9 slcomposeviewcontroller

我正在使用带有XCode 7 beta / iOS 9 beta的社交框架。 Facebook应用程序安装在(物理)设备上,但在设置中,未配置任何帐户。根据{{​​3}}:

  

要使帐户可用,用户必须登录   设备设置中的社交服务。

尽管如此,SLComposeViewController.isAvailableForServiceType(SLServiceTypeFacebook)会返回true。知道为什么会这样吗?

作为旁注:

let store = ACAccountStore()
let accountType = store.accountTypeWithAccountTypeIdentifier(ACAccountTypeIdentifierFacebook)
let accounts = store.accountsWithAccountType(accountType)

未登录时,会返回nil;但登录后,这将返回一个空数组类型[AnyObject]

0 个答案:

没有答案
相关问题