fix ios13 text color

This commit is contained in:
yaw
2019-11-11 16:32:08 +08:00
parent e89a621512
commit 98d10a139a
2 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -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;
+1 -5
View File
@@ -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];
}