Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4248760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:18:17+00:00 2026-05-21T04:18:17+00:00

i am working on Twitter on iPhone now i have to keep the count

  • 0

i am working on Twitter on iPhone

now i have to keep the count of Friend, Tweets, Followers etc on UILabel

how to work with this

- (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier {

        NSLog(@"User Info Received: %@", userInfo);   // userInfo contains all user details like userName, screenName, count of Friends, Followers, Following, Status Count etc 

    NSLog(@"User Info Received: %d", [userInfo count]); 


    NSMutableDictionary *profileData = [userInfo objectAtIndex:0]; //converting userInfo array into profileData dictionary

    lblUserName.text = [profileData objectForKey:@"name"]; // lblUserName is UILabel, userName keeping on Label

       lblLocation.text = [profileData objectForKey:@"location"]; // lblLocation is UILabel, Location keeping on Label

    lblDescription.text = [profileData objectForKey:@"description"]; // lblDescription is UILabel, Location keeping on Label

/////*** Up to here all working but how to Keep integer value on UILabel *****/////

          lblFolCount = (NSNumber *)[profileData objectForKey:@"followers_count"]; //how to keep user Followers Count on UILable 

    lblFavCount = (NSNumber *)[profileData objectForKey:@"favourites_count"]; //how to keep user Followers Count on UILable 

    lblStatusCount = (NSNumber *) [profileData objectForKey:@"statuses_count"]; //how to keep user statuses count on UILable 

    lblFriends = (NSNumber *) [profileData objectForKey:@"friends_count"]; //how to keep user friends count on UILable 

}

////*****This info Display on debugger console****///////
////NSLog(@"User Info Received: %@", userInfo);   // by this we get info on debugger console

User Info Received: (
{

    "created_at" = "Tue Nov 02 14:42:42 +0000 2010";

    description = "being honest";

    favorited = false;

    "favourites_count" = 0;

     "followers_count" = 5;

    "friends_count" = 21;

    "listed_count" = 0;

    location = Chennai;

    name = "nanda kishore reddyv";

       "profile_background_color" = EDECE9;

    "profile_background_image_url" = "http://a2.twimg.com/a/1292975674/images/themes/theme3/bg.gif";

    "profile_background_tile" = false;

    "profile_image_url" = "http://a2.twimg.com/a/1292975674/images/default_profile_6_normal.png";

    "retweet_count" = 0;

    "screen_name" = velugotinanda;

    source = "<a href=\"http://www.icodeblog.com\" rel=\"nofollow\">iCodeBlog Oauth Demo</a>";

    status = "Mon Dec 27 09:22:44 +0000 2010";
    "statuses_count" = 15;

    "time_zone" = "Indiana (East)";

   verified = false;
}

)
2011-01-01 10:38:29.460 IdeaTweet[471:207] User Info Received: 1

Thanks YOU can you tell me
how to Keep integer Value on UILabel

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:18:18+00:00Added an answer on May 21, 2026 at 4:18 am
    lblFolCount.text = [NSString stringWithFormat:@"%d", 
                         [[profileData objectForKey:@"followers_count"] intValue]];
    

    Here,

    UILabel *lblFolCount;
    NSMutableDictionary *profileData;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

text with apstrophe is not working in the twitter. Now i am using this
I am working on windows. I have built a twitter application using the twitter
I have been working on an iPhone app that has a feature of uploading
Is there any known method to have a date input working while using Twitter
I'm working on a twitter app for the iphone using oAuth/MGTwitterEngine The source it's
hi i am working for Twitter client, i want display number(NSNumber) on UILabel like
hi i am working with Twitter, in this there will be two class, for
hi i am working with Twitter, i got problem with images, i have tweet
I'm working on integrating Ben Gottlieb's Twitter-OAuth-iPhone code into my cocos2d 0.99.5 project using
I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.