アプリで MWPhotoBrowser ライブラリを使用しています。写真、キャプションを表示していますが、iOS 8 が来るまではすべてが完璧に機能します。
私の問題は;
iOS 7 ではナビゲーション バーが表示されますが、iOS 8 では表示されなくなり、戻ることができません。gitHub をチェックしましたが、何も見つかりませんでした。何か考えはありますか?
- (void)viewPhotoBrowser{
self.photos = [NSMutableArray array];
for (Images *image in self.browserImages) {
[self.photos addObject:[MWPhoto photoWithURL:[NSURL URLWithString:image.image]]];
}
// Create & present browser
self.browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
// Set options
self.browser.displayActionButton = YES; // Show action button to allow sharing, copying, etc (defaults to YES)
self.browser.displayNavArrows = NO; // Whether to display left and right nav arrows on toolbar (defaults to NO)
self.browser.displaySelectionButtons = NO; // Whether selection buttons are shown on each image (defaults to NO)
self.browser.zoomPhotosToFill = YES; // Images that almost fill the screen will be initially zoomed to fill (defaults to YES)
self.browser.alwaysShowControls = NO; // Allows to control whether the bars and controls are always visible or whether they fade away to show the photo full (defaults to NO)
self.browser.enableGrid = YES; // Whether to allow the viewing of all the photo thumbnails on a grid (defaults to YES)
self.browser.startOnGrid = NO; // Whether to start on the grid of thumbnails instead of the first photo (defaults to NO)
self.browser.wantsFullScreenLayout = NO; // iOS 5 & 6 only: Decide if you want the photo browser full screen, i.e. whether the status bar is affected (defaults to YES)
[self.browser setCurrentPhotoIndex:0]; // Example: allows second image to be presented first
// Manipulate
[self.browser showNextPhotoAnimated:YES];
[self.browser showPreviousPhotoAnimated:YES];
[self.browser.view setFrame:CGRectMake(0, -20, self.browser.view.frame.size.width, self.browser.view.frame.size.height)];
[self.view addSubview:self.browser.view];
[self.navigationController pushViewController:self.browser animated:YES];
}