How do I create an account for my application with ACAccountStore
in swift2
and Xcode
since it only shows me facebook and twitter but I will not use them. I need to create is an account that is of my application. Thanks.
How do I create an account for my application with ACAccountStore
in swift2
and Xcode
since it only shows me facebook and twitter but I will not use them. I need to create is an account that is of my application. Thanks.
I think it's not possible to create accounts that are from your application.
In order to create an account you need an ACAccountType, and according to the documentation (in English) this is not possible:
An
ACAccountType
object encapsulates information about all accounts of a particular type. You do not create account type objects directly. To obtain an account type, use theaccountTypeWithAccountTypeIdentifier:
method or the% co_of% property of an account object.
Free translation:
An object of type
accountType
encapsulates information about all accounts of a particular type. You can not create objects of this type directly. To get an account type, use theACAccountType
method or theaccountTypeWithAccountTypeIdentifier:
property of anaccountType
object.