여기에서 의 추종자와 추종자를 모두 얻으려고 시도하고 있습니다. FHSTwitterEngine
을 사용하고 있습니다. 팔로어를 얻고 dictionary
을 NSMutableArray
에 입력하여 tableView
에 인쇄하는 코드가 있습니다.1 NSMutableArray에 2 개의 NSMutableDictionaries 추가하기
NSMutableDictionary *dict1 = [[FHSTwitterEngine sharedEngine]listFollowersForUser:usernames isID:NO withCursor:@"-1"];
NSLog(@"====> %@",[dict1 objectForKey:@"users"]);
twttrFrndListVC.twitterFrndList=[dict1 objectForKey:@"users"];
위의 코드를 사용하면 팔로어를 얻을 수 있습니다. 그러나 내가 추종자와 followers 모두 을 얻으려고하면, 그것은 작동하지 않습니다.
NSMutableDictionary *dict1 = [[FHSTwitterEngine sharedEngine]listFollowersForUser:username isID:NO withCursor:@"-1"];
NSMutableDictionary *dict2 = [[FHSTwitterEngine sharedEngine] listFriendsForUser:username isID:NO withCursor:@"-1"];
NSLog(@"====> %@",[dict1 objectForKey:@"users"]);
twttrFrndListVC.twitterFrndList=[dict1 objectForKey:@"users"],[dict2 objectForKey:@"users"];
위의 코드는 추종자 이름 만 반환합니다. 사전의 값을 모두 얻으려면 어떻게해야합니까? 두 개의 NSMutableDictionaries
을 하나씩 추가하려면 어떻게해야합니까? NSMutableArray
? 두 사전 모두 같은 키를 가지고 있습니다.
덕분에 많은 사랑 ... Thankeww을 난 그냥 당신이 할 수있는 또 다른 방법을 추가하는있는 NSMutableArray를 사용하는 것을 보았다 매우 @dfinki. 내 시간을 절약 했잖아. –
환영합니다. 월요일 아침에 도움을 줄 수있는 좋은 출발입니다! @iDev – dfinki