ACAccountCredential

来源:互联网 发布:代码高亮 源码 编辑:程序博客网 时间:2024/05/16 03:19

ACAccountCredential记录账户的身份信息。

1 Initializing Credentials

// 初始化ACAccountCredentialpublic init!(OAuthToken token: String!, tokenSecret secret: String!)// 初始化ACAccountCredentialpublic init!(OAuth2Token token: String!, refreshToken: String!, expiryDate: NSDate!)

2 Accessing Credential Properties

// OAuth2证书tokenpublic var oauthToken: String!

 


Appendix

Sample Code

Swift

Accounts Framework Reference

ACAccountCredential Class Reference

Revision History

时间 描述 2016-01-26 博文完成

CSDN:http://blog.csdn.net/y550918116j

GitHub:https://github.com/937447974/Blog

0 0
原创粉丝点击