Closed m9aileekh closed 11 years ago
assuming self.data is the data array objects returned by the sdk: cell.textLabel.text = [[self.data objectAtIndex:indexPath.row] objectForKeyPath:@"location.id"];
Hello, am sorry it doesn't work !!
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"users/self/feed", @"method", nil];
&&
cell.textLabel.text = [[self.data objectAtIndex:indexPath.row] objectForKey:@"location.id"];
But nothing in the table view !!
Use objectForKeyPath and not objectForKey
No known instance method for selector 'objectForKeyPath:'
It''s the same of objectForKey. look at my previous comment
I really don't understand what did you mean, I used objectForKey and not works , I copied your code above with objectForKeyPath and doesn't work
Please a little help :)
I appreciate your efforts dear
how do you set self.data??
Same in the example I didnt change only the api url
Where could I set self.data ?
if you working on example, self.data is set at line 163. be sure self.data is correctly set
Okay got it, Thanks for your help man
Hello,
Dear I did this one:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"users/self/feed", @"method", nil];
but how to get the data of locations ?
an example:
cell.textLabel.text = [[self.data objectAtIndex:indexPath.row] objectForKey:@"location->id"];
^ I want to return the id of location
Thanks alot