Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter user id in iOS 5
    text
    copied!<p>I'm using the following code to get the user details from Twitter in iOS 5.</p> <pre><code>if ([TWTweetComposeViewController canSendTweet]) { // Create account store, followed by a Twitter account identifer account = [[ACAccountStore alloc] init]; ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; // Request access from the user to use their Twitter accounts. [account requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) { // Did user allow us access? if (granted == YES) { // Populate array with all available Twitter accounts arrayOfAccounts = [account accountsWithAccountType:accountType]; [arrayOfAccounts retain]; // Populate the tableview if ([arrayOfAccounts count] &gt; 0) [self performSelectorOnMainThread:@selector(updateTableview) withObject:NULL waitUntilDone:NO]; } }]; } // -(void)updateTableview { numberOfTwitterAccounts = [arrayOfAccounts count]; NSLog(@"Twiter details-- %@",[arrayOfAccounts objectAtIndex:0]); } </code></pre> <p>In my <code>NSLog</code> console, I am getting the output as follows:</p> <pre><code>Twiter details-- type:com.apple.twitter identifier: E8591841-2AE0-4FC3-8ED8-F286BE7A36B0 accountDescription: @Sadoo55 username: sadukoyghdkwed@gmail.com objectID: x-coredata://F8059811-CFB2-4E20-BD88-F4D06A43EF11/Account/p8 enabledDataclasses: {( )} properties: { "user_id" = 308905856; } parentAccount: (null) owningBundleID:com.apple.Preferences </code></pre> <p>I want to get the "user_id" from this. How can I fetch "user_id" (ie. 308905856)?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload