[Solved] Unrecognized selector sent to instance NSArrayM [closed]


Did you removed UITabBarController also from your .xib file in Interface Builder?
Did you removed UITabBarController also from your .xib file in Interface Builder?
Check if object – in your case NSDictionary is kind of it’s class and key is not null. For example:

- (void)fetchedDataAlerta:(NSData *)responseData {
    NSError* error;
    NSLog(@"RESP register %@", responseData);
    if(responseData ) { //here you have recieved valid info. Without it, next line  will crash
        NSDictionary* json = [NSJSONSerialization options:kNilOptions error:&error];

In your case

NSData* rawBody2 = [response2 rawBody];
//here check if NSData is not null, nil and is valid add line
if (rawBody2) {
    results2 = [NSJSONSerialization JSONObjectWithData:rawBody2 options:NSJSONReadingMutableContainers error:nil];

1

solved Unrecognized selector sent to instance NSArrayM [closed]