mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-08-05 00:03:45 +08:00
fix ios13 text color
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user