[Solved] -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance [duplicate]

NSArray *retrievedJTrans = [NSJSONSerialization JSONObjectWithData:response options:0 error:&jsonParsingError]; is a dictionary what you might want NSDictionary *retrievedJTransD = [NSJSONSerialization JSONObjectWithData:response options:0 error:&jsonParsingError]; NSArray *retrievedJTrans = retrievedJTransD[@”data”][@”translations”]; 0 solved -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance [duplicate]

[Solved] Unrecognized selector sent to instance for my tap gesture

You don’t know how to make the correct selector for this method. (It would be “didtapContainerViewWithGesture:”, but clearly you don’t know that.) So don’t try. Use #selector syntax and let the compiler form the selector for you! Just say #selector(didtapContainerView). Done. 0 solved Unrecognized selector sent to instance for my tap gesture