ACAccountStore
2016-01-26 14:11
232 查看
ACAccountStore管理账户授权及对账户ACAccount的增、删、改和查。
ACAccountStore Class Reference
GitHub:https://github.com/937447974/Blog
1 Getting Accounts
/// 获取所有账户 public var accounts: [AnyObject]? { get } /// 根据账户标示符获取账户 public func accountWithIdentifier(identifier: String!) -> ACAccount! /// 根据账户类型获取账户 public func accountsWithAccountType(accountType: ACAccountType!) -> [AnyObject]!
2 Getting Account Types
/// 获取账户类型,如获取微博,传入ACAccountTypeIdentifierSinaWeibo public func accountTypeWithAccountTypeIdentifier(typeIdentifier: String!) -> ACAccountType!
3 Saving Accounts
/// 保存账户 public func saveAccount(account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreSaveCompletionHandler!)
4 Requesting Access
// 用户授权 public func requestAccessToAccountsWithType(accountType: ACAccountType!, options: [NSObject : AnyObject]!, completion: ACAccountStoreRequestAccessCompletionHandler!)
5 Renewing Account Credentials
// 更新账户 public func renewCredentialsForAccount(account: ACAccount!, completion completionHandler: ACAccountStoreCredentialRenewalHandler!)
6 Removing Accounts
// 删除账户 public func removeAccount(account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreRemoveCompletionHandler!)
Appendix
Sample Code
SwiftRelated Documentation
Accounts Framework ReferenceACAccountStore Class Reference
Revision History
时间 | 描述 |
---|---|
2016-01-26 | 博文完成 |
Copyright
CSDN:http://blog.csdn.net/y550918116jGitHub:https://github.com/937447974/Blog
相关文章推荐
- 设计模式之:职责链模式
- 第四章 进程的控制与终止
- etl循环跑数据(mysql)
- 知识片段---导航栏设置背景
- 【Boost】boost库中thread多线程详解1——thread入门与简介
- C#中抽象类和接口的区别
- 打造先进的内存KV数据库-7 反射以及并发锁
- eclipse
- sql server 存储过程,事务
- WINCE 获取智能设备唯一编号
- 省市县三级联动
- tickers
- YTU 2800: 逗逗泡泡的保密电文
- XML文件解析之PULL解析
- [HDU1282]回文数猜想
- ora-14400插入的分区关键字未映射到任何分区---oracle数据库表过期问题
- [Leetcode]@python 79. Word Search
- 正则表达式入门到精通
- 知识片段---表判断是处于上划还是下滑
- Python正则表达式