|
@@ -63,7 +63,13 @@
|
|
- (void)tapAction {
|
|
- (void)tapAction {
|
|
if (_model.mode != SDK_CAPTURE_MODE_MOVIE) {
|
|
if (_model.mode != SDK_CAPTURE_MODE_MOVIE) {
|
|
YBIBImageData *data = [YBIBImageData new];
|
|
YBIBImageData *data = [YBIBImageData new];
|
|
- data.imagePath = _model.path;
|
|
|
|
|
|
+// data.imagePath = _model.path;
|
|
|
|
+ __weak typeof(self) weakSelf = self;
|
|
|
|
+ data.image = ^UIImage * _Nullable{
|
|
|
|
+ __strong typeof(weakSelf) strongSelf = weakSelf;
|
|
|
|
+ return strongSelf.model.previewImage;
|
|
|
|
+ };
|
|
|
|
+ data.allowSaveToPhotoAlbum = NO;
|
|
YBImageBrowser *browser = [YBImageBrowser new];
|
|
YBImageBrowser *browser = [YBImageBrowser new];
|
|
browser.dataSourceArray = @[data];
|
|
browser.dataSourceArray = @[data];
|
|
browser.defaultToolViewHandler.topView.hidden = YES;
|
|
browser.defaultToolViewHandler.topView.hidden = YES;
|