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];