Skip to content

Instantly share code, notes, and snippets.

@gekitz
Created April 30, 2014 11:07
Show Gist options
  • Save gekitz/acc7aea189d1a34185c6 to your computer and use it in GitHub Desktop.
Save gekitz/acc7aea189d1a34185c6 to your computer and use it in GitHub Desktop.
Never do that if performance matters
- (BOOL)twitterAuthorized {
ACAccountStore *store = [ACAccountStore new];
ACAccountType *accountType = [store
accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
return [accountType accessGranted];
}
@gekitz
Copy link
Author

gekitz commented Apr 30, 2014

never use that in e.g. numberOfRowsInSection , cache the value and use it instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment