mariohahn / MHVideoPhotoGallery

A Photo and Video Gallery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loading MHGallery.bundle in Swift project

inov opened this issue · comments

commented

I have included MHVideoPhotoGallery in a Swift project with cocoapods. The gallery is working except for one problem.
When presenting the MHGalleryController the app crashes when it reaches this method in MHGalleryImageViewerViewController:

-(void)updateTitleForIndex:(NSInteger)pageIndex{
    NSString *localizedString  = MHGalleryLocalizedString(@"imagedetail.title.current");
    self.navigationItem.title = [NSString stringWithFormat:localizedString,@(pageIndex+1),@(self.numberOfGalleryItems)];   
}

It turns out that the LocalizedString returns nil because the MHGallery.bundle file isn't correctly loaded.
Can someone explain to me how I can include the MHGallery.bundle file in my project?

Thanks

I have the same problem, how did you solve it?