Skip to content

Commit 92359eb

Browse files
guangyaoguangyao
authored andcommitted
fix iOS11截屏慢导致打开大图慢的问题
1 parent 33018bb commit 92359eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ios/RCTAuroraIMUI/DWShowImageVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ - (void)viewDidLoad {
3030
[super viewDidLoad];
3131
UIWindow *screenWindow = [[UIApplication sharedApplication] keyWindow];
3232
[self.view addSubview:self.backImageView];
33-
self.backImageView.image = self.backgroundImg;
33+
// self.backImageView.image = self.backgroundImg;
3434

3535
_scroll = [DWOrigScorllView scrollViewWithDataArr:_imageArr andIndex:(_index-1) showDownBtnTime:0.3 ];
3636
_scroll.delegate = self;

ios/RCTAuroraIMUI/RCTMessageListView.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,9 @@ - (void)clickShowOrigImgView:(NSNotification *)noti{
410410
UIWindow *win = [UIApplication sharedApplication].keyWindow;
411411
UIViewController *rootVC = win.rootViewController;
412412
DWShowImageVC *vc = [[DWShowImageVC alloc]init];
413+
vc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
413414
vc.imageArr = _imageArr;
414-
vc.backgroundImg = [self getScreenshots];
415+
// vc.backgroundImg = [self getScreenshots];
415416
vc.index = imgIndex;
416417
[rootVC presentViewController:vc animated:NO completion:nil];
417418
}

0 commit comments

Comments
 (0)