From 98d10a139a92c6c9c98d4fa5d1e3fa4fcaba3c1f Mon Sep 17 00:00:00 2001 From: yaw Date: Mon, 11 Nov 2019 16:32:08 +0800 Subject: [PATCH] fix ios13 text color --- src/ios/DMCMediaPicker/AlbumListView.m | 3 ++- src/ios/MediaPicker.m | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/ios/DMCMediaPicker/AlbumListView.m b/src/ios/DMCMediaPicker/AlbumListView.m index 08462e5..08f442b 100644 --- a/src/ios/DMCMediaPicker/AlbumListView.m +++ b/src/ios/DMCMediaPicker/AlbumListView.m @@ -86,6 +86,7 @@ [cell addSubview:cellImageView]; UILabel *cellText = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(cellImageView.frame)+margin, 0, self.bounds.size.width, _cellHeight)]; + cellText.textColor = [UIColor blackColor]; cellText.tag = 102; [cell addSubview:cellText]; } @@ -115,7 +116,7 @@ NSMutableAttributedString * attrStr=[[NSMutableAttributedString alloc]initWithString:str]; [attrStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:17] range:[str rangeOfString:titileName]]; - + [attrStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:12] range:[str rangeOfString:count]]; cellText.attributedText =attrStr; diff --git a/src/ios/MediaPicker.m b/src/ios/MediaPicker.m index 6372f1a..8328489 100644 --- a/src/ios/MediaPicker.m +++ b/src/ios/MediaPicker.m @@ -30,11 +30,7 @@ }@catch (NSException *exception) { NSLog(@"Exception: %@", exception); } - @try{ - dmc.maxSelectSize=[[options objectForKey:@"maxSelectSize"]integerValue]; - }@catch (NSException *exception) { - NSLog(@"Exception: %@", exception); - } + dmc.modalPresentationStyle = 0; dmc._delegate=self; [self.viewController presentViewController:[[UINavigationController alloc]initWithRootViewController:dmc] animated:YES completion:nil]; }