From 630071c0e4a08935a4379c8901f377df3c00e4ff Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Thu, 12 May 2016 15:12:48 -0700 Subject: [PATCH] Correct behavior for path resolution --- FGallery/Classes/FGalleryPhoto.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FGallery/Classes/FGalleryPhoto.m b/FGallery/Classes/FGalleryPhoto.m index 7c5c3e3..70693c5 100755 --- a/FGallery/Classes/FGalleryPhoto.m +++ b/FGallery/Classes/FGalleryPhoto.m @@ -130,7 +130,7 @@ - (void)loadFullsizeInThread path = _fullsizeUrl; } else { - path = [NSString stringWithFormat:@"%@/%@", [[NSBundle mainBundle] bundlePath], _fullsizeUrl]; + path = [[NSBundle mainBundle] pathForResource:_fullsizeUrl ofType:nil]; } _fullsize = [[UIImage imageWithContentsOfFile:path] retain]; @@ -155,7 +155,7 @@ - (void)loadThumbnailInThread path = _thumbUrl; } else { - path = [NSString stringWithFormat:@"%@/%@", [[NSBundle mainBundle] bundlePath], _thumbUrl]; + path = [[NSBundle mainBundle] pathForResource:_thumbUrl ofType:nil]; } _thumbnail = [[UIImage imageWithContentsOfFile:path] retain];