Skip to content

Commit f55bdad

Browse files
committed
fix image copy, photo rotation issue. close jessesquires#723
1 parent 741f53f commit f55bdad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JSQMessagesViewController/Model/JSQPhotoMediaItem.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ - (instancetype)initWithImage:(UIImage *)image
3737
{
3838
self = [super init];
3939
if (self) {
40-
_image = [UIImage imageWithCGImage:image.CGImage];
40+
_image = [image copy];
4141
_cachedImageView = nil;
4242
}
4343
return self;
@@ -53,7 +53,7 @@ - (void)dealloc
5353

5454
- (void)setImage:(UIImage *)image
5555
{
56-
_image = [UIImage imageWithCGImage:image.CGImage];
56+
_image = [image copy];
5757
_cachedImageView = nil;
5858
}
5959

0 commit comments

Comments
 (0)