diff --git a/JSQMessagesViewController/Categories/UIImage+JSQMessages.m b/JSQMessagesViewController/Categories/UIImage+JSQMessages.m index 55a6e28fd..8618f6698 100644 --- a/JSQMessagesViewController/Categories/UIImage+JSQMessages.m +++ b/JSQMessagesViewController/Categories/UIImage+JSQMessages.m @@ -50,8 +50,11 @@ - (UIImage *)jsq_imageMaskedWithColor:(UIColor *)maskColor + (UIImage *)jsq_bubbleImageFromBundleWithName:(NSString *)name { - return [UIImage imageNamed:[NSString stringWithFormat:@"JSQMessagesAssets.bundle/Images/%@", name] - inBundle:[NSBundle bundleForClass:[JSQMessagesViewController class]] compatibleWithTraitCollection:nil]; + NSString *imagePath = [[NSBundle bundleForClass:[JSQMessagesViewController class]] + pathForResource:[NSString stringWithFormat:@"JSQMessagesAssets.bundle/Images/%@", name] + ofType:@"png"]; + + return [UIImage imageWithContentsOfFile:imagePath]; } + (UIImage *)jsq_bubbleRegularImage