in my NSArray contains below info like userName, screenName, Description etc
this information i have to * display on simulator r device with respectively UIElements *
whether i have to keep the NSArray in NSDictionary if so how i have to do that can you tell me how to work with this
i am using this delegate and getting below info on console
-(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier {
NSLog(@"User Info Received: %@", userInfo);
}
this is info in Debug Console
{
"created_at" = "Fri Nov 19 17:22:47 +0000 2010";
description = "";
"favourites_count" = 0;
"followers_count" = 99;
following = 0;
"friends_count" = 860;
lang = en;
"listed_count" = 0;
location = "";
name = "preeti singh";
"profile_background_image_url" = "http://a3.twimg.com/a/1292606737/images/themes/theme1/bg.png";
"profile_image_url" = "http://a2.twimg.com/a/1292531900/images/default_profile_6_normal.png";
"profile_use_background_image" = true;
"screen_name" = preetisingjik;
}
Your signature suggest that a NSArray should be passed in while obviously, a NSDictionary is instead !
I suggest you change the protocol to
(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier
Then access the value from your dictionary using
NSString *desc = [userInfo objectForKey:@"description"];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.