Question

I'm getting error when calling a selector named simIndex. This is the error message:

-[__NSCFString count]: unrecognized selector sent to instance 0xba2ce80

This is my code

 [FBRequestConnection startWithGraphPath:@"/100000200918206/likes"
 parameters:nil
 HTTPMethod:@"GET"
 completionHandler:^(
 FBRequestConnection *connection,
 id results2,
 NSError *error
 ) {
 /* handle the result */
 if (error) {
 NSLog(@"Error: %@", [error localizedDescription]);
 } else {
 [self simIndex];
 }

 \
 }];

This is how I'm defining simIndex:

-(void) simIndex {
 //...
}
Was it helpful?

Solution

result2 is certainly not an NSMutableDictionary. Actually it is an NSString object. Check it and go from there.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top