Created
June 21, 2013 09:40
-
-
Save Kursulla/5830107 to your computer and use it in GitHub Desktop.
ACAccount getting user_id
This file contains 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
ACAccount *account=nil; | |
NSArray *accountsArray = [accountStore accountsWithAccountType:accountType]; | |
if([accountsArray count]>0){ | |
account=[accountsArray objectAtIndex:0]; | |
} | |
NSDictionary *tempDict = [[NSMutableDictionary alloc] initWithDictionary: | |
[account dictionaryWithValuesForKeys:[NSArray arrayWithObject:@"properties"]]]; | |
NSString *userId = [[tempDict objectForKey:@"properties"] objectForKey:@"user_id"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment