ReactiveAccountStore 1.0.0

ReactiveAccountStore 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Syo Ikeda.



ReactiveCocoa support for Accounts.framework.

Usage

Requests access and saves an account:

ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *type = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];

[[[accountStore
    rac_requestAccessToAccountsWithType:type options:nil]
    concat:[RACSignal defer:^{
        ACAccount *account = [accountStore accountsWithAccountType:type][0];
        account.accountDescription = @"description";
        return [accountStore rac_saveAccount:account];
    }]] subscribeError:^(NSError *error) {
        // Failed to save or access was not granted.
    } completed:^{
        // Succeeded to save.
    }];

Requirements

  • iOS 6.0+
  • OS X 10.8+

Installation

Let's use CocoaPods.

Add the following line to your Podfile:

pod 'ReactiveAccountStore'

Then, run the following command in the project direcotry:

$ pod install

Contributors

Syo Ikeda, [email protected]

License

ReactiveAccountStore is licensed under the MIT license.