私のアプリでは、URL から画像をダウンロードし、アプリケーション ドキュメント ディレクトリに保存しています。これらのダウンロードした画像を画像ギャラリーとして表示したいと思います。fGalleryを使用している画像ギャラリーの場合、それを構成してナビゲーションコントローラーに正常にプッシュでき、 fGallery ビューも表示されますが、画像が表示されません。 fGalley にこのような画像配列を提供します
ヘッダー ファイル
@interface myController <FGalleryViewControllerDelegate> 
@property (strong, nonatomic) FGalleryViewController *localGallery;
@property (strong, nonatomic) NSMutableArray *localImages;
クラスファイル
    //These are delegate methods of FGalleryViewControllerDelegate
    - (NSString*)photoGallery:(FGalleryViewController*)gallery filePathForPhotoSize:(FGalleryPhotoSize)size atIndex:(NSUInteger)index
    {
        return [localImages objectAtIndex:index];
    }
    - (NSString*)photoGallery:(FGalleryViewController *)gallery urlForPhotoSize:(FGalleryPhotoSize)size atIndex:(NSUInteger)index
    {
        return [localImages objectAtIndex:index];
    }
    - (int)numberOfPhotosForPhotoGallery:(FGalleryViewController *)gallery
    {
        int num;
        num = [localImages count];
        return num;
    }
    - (FGalleryPhotoSourceType)photoGallery:(FGalleryViewController *)gallery sourceTypeForPhotoAtIndex:(NSUInteger)index
    {    
         return FGalleryPhotoSourceTypeLocal;
    }
    //Delegate method ends here
// My method to show gallery with my images
-(void)ShowGallery
{
    localImages = [[NSMutableArray alloc]init];    
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDir = [paths objectAtIndex:0];
NSString *dataPath = [documentsDir stringByAppendingPathComponent:chatWithUser;
NSString *msgsColumn;
    //database query to fetch all images name and then
    while([results next])
    {
        msgsColumn = [results stringForColumn:@"msgs"];
        if([[[msgsColumn componentsSeparatedByString:@"."]objectAtIndex:1]isEqualToString:@"jpg"])
        {
            [localImages addObject:[dataPath stringByAppendingPathComponent:msgsColumn]];
        }
    }
    [database close];
    localGallery = [[FGalleryViewController alloc]initWithPhotoSource:self];
    [self.navigationController pushViewController:localGallery animated:YES];     
}
画像パスにはstringByAppendingPathComponentを使用しましたが、stringByAppendingStringを試して、画像がドキュメントディレクトリにあることをガイドしましたが、何も機能していません。
何が問題なのかを理解するのを手伝ってください。