1

我正在使用这个库在我的 ios 设备https://github.com/mwaterfall/MWPhotoBrowser上的自定义位置文件夹中显示图片/视频。它设法显示图片和视频,但是,它现在显示后退按钮既不是我的 iphone 上的顶栏,我正在从我的反应原生插件中调用库。

MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];

  browser.displayActionButton = YES; // Show action button to allow sharing, copying, etc (defaults to YES)
 browser.displayNavArrows = NO; // Whether to display left and right nav arrows on toolbar (defaults to NO)
 browser.displaySelectionButtons = NO; // Whether selection buttons are shown on each image (defaults to NO)
 browser.zoomPhotosToFill = YES; // Images that almost fill the screen will be initially zoomed to fill (defaults to YES)
 browser.alwaysShowControls = NO; // Allows to control whether the bars and controls are always visible or whether they fade away to show the
 [browser setCurrentPhotoIndex:index];

 // Manipulate
 [browser showNextPhotoAnimated:YES];
 [browser showPreviousPhotoAnimated:YES];
 [browser.view setFrame:CGRectMake(0, 0, browser.view.frame.size.width,       browser.view.frame.size.height)];
 AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
 [delegate.window addSubview:browser.view];
 [delegate.navigationController pushViewController:browser animated:YES  ];

它可以毫无问题地显示图片和视频,但没有显示返回按钮。有任何想法吗?

4

0 回答 0