当我尝试将 NSMutableArray 的一部分转换为 NSInteger 时,我得到九位数字(可能是扇区数),而不是这部分的值。
NSInteger i = [_tableData[1][@"likes"][@"count"] intValue];
_tableData - 从 vk.com 服务器转换的答案
NSMutableArray *_tableData;
//------------------
- (void)viewDidLoad
{
_tableData = [[NSMutableArray alloc] init];
[[VKConnector sharedInstance]
setDelegate:self];
[[VKConnector sharedInstance] startWithAppID:@"3541027"
permissons:@[@"wall"]];
}
#pragma mark - VKConnectorDelegate
- (void)VKConnector:(VKConnector *)connector accessTokenRenewalSucceeded:(VKAccessToken *)accessToken
{
[[VKUser currentUser] setDelegate:self];
[[VKUser currentUser] wallGet:@{@"owner_id":@"-44554509",@"count":@"100"}];
}
#pragma mark - VKRequestDelegate
- (void)VKRequest:(VKRequest *)request response:(id)response
{
_tableData = response[@"response"];
[_mainList reloadData];
}