Created
April 30, 2014 11:07
-
-
Save gekitz/acc7aea189d1a34185c6 to your computer and use it in GitHub Desktop.
Never do that if performance matters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)twitterAuthorized { | |
ACAccountStore *store = [ACAccountStore new]; | |
ACAccountType *accountType = [store | |
accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; | |
return [accountType accessGranted]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
never use that in e.g.
numberOfRowsInSection
, cache the value and use it instead.