Frage

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 {
 //...
}
War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top