Reputation: 397
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 {
//...
}
Upvotes: 0
Views: 57
Reputation: 14068
result2
is certainly not an NSMutableDictionary
. Actually it is an NSString
object. Check it and go from there.
Upvotes: 1