我正在使用此库来显示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 ];
它显示图片和视频没有任何问题,但它没有显示后退按钮。有什么想法吗?