Skip to content

Commit

Permalink
oops. fix use of iOS 8-only API.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Jan 11, 2015
1 parent 1b9814e commit df26f3c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions JSQMessagesViewController/Categories/UIImage+JSQMessages.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df26f3c

Please sign in to comment.