I am trying to set attributes string to UITableViewCell's text label I am using following code :     NSDictionary * dic = [arrayForTableView objectAtIndex:indexPath.row];
            
                NSNumber* lostPets = [dic valueForKey:@"lostPets"];
                NSNumber * foundPets = [dic valueForKey:@"foundPets"];
                NSString * breed = [dic valueForKey:@"breed"];
            
            
                NSMutableAttributedString* message = [[NSMutableAttributedString alloc] init];
                //set text
                [message appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@ (",breed]]];
            
            
            
                [message appendAttributedString:[[NSAttributedString alloc] initWithString:[foundPets stringValue] attributes:@{
                                                                                                             NSFontAttributeName : [UIColor greenColor]
                                                                                                             }]];
            
                [message appendAttributedString:[[NSAttributedString alloc] initWithString:@"), ("]];
            
            
                [message appendAttributedString:[[NSAttributedString alloc] initWithString:[lostPets stringValue] attributes:@{
                                                                                                             NSFontAttributeName : [UIColor redColor]
                                                                                                             }]];
                [message appendAttributedString:[[NSAttributedString alloc] initWithString:@")"]];
            
            cell.textLabel.attributedText = message;

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UICachedDeviceRGBColor ctFontRef]: unrecognized selector sent to instance

I tried to debug the code but unable to get the point of crash.  Kindly help.
Thanks in advance.