From eecd4382049b498344290722c63b2c316a44ec41 Mon Sep 17 00:00:00 2001 From: yaw Date: Sat, 2 Feb 2019 11:24:04 +0800 Subject: [PATCH] lable font size --- src/ios/DMCMediaPicker/CollectionViewCell.m | 6 +++--- src/ios/MediaPicker.m | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ios/DMCMediaPicker/CollectionViewCell.m b/src/ios/DMCMediaPicker/CollectionViewCell.m index de9a392..800b7f0 100644 --- a/src/ios/DMCMediaPicker/CollectionViewCell.m +++ b/src/ios/DMCMediaPicker/CollectionViewCell.m @@ -21,13 +21,13 @@ CGFloat labelH=width/6; self.labelL = [[UILabel alloc]initWithFrame:CGRectMake(0, width-labelH, width/2, labelH)]; self.labelL.textColor=[UIColor whiteColor]; - self.labelL.font=[UIFont systemFontOfSize:(labeH-5)*0.68]; + self.labelL.font=[UIFont systemFontOfSize:(labelH-5)*0.68]; self.labelL.backgroundColor= [[UIColor blackColor] colorWithAlphaComponent:0.3f]; self.labelR = [[UILabel alloc]initWithFrame:CGRectMake(width/2, width-labelH, width/2, labelH)]; self.labelR.textColor=[UIColor whiteColor]; - self.labelR.font=[UIFont systemFontOfSize:(labeH-5)*0.68]; + self.labelR.font=[UIFont systemFontOfSize:(labelH-5)*0.68]; //self.labelR.textAlignment=NSTextAlignmentRight; self.labelR.backgroundColor= [[UIColor blackColor] colorWithAlphaComponent:0.3f]; @@ -40,7 +40,7 @@ self.labeGIF.attributedText = attrText; self.labeGIF.layer.cornerRadius = 4; self.labeGIF.layer.masksToBounds = YES; - self.labeGIF.font=[UIFont systemFontOfSize:(labeH-5)*0.68]; + self.labeGIF.font=[UIFont systemFontOfSize:(labelH-5)*0.68]; self.labeGIF.adjustsFontSizeToFitWidth = YES; self.labeGIF.backgroundColor= [[UIColor blackColor] colorWithAlphaComponent:0.4f]; diff --git a/src/ios/MediaPicker.m b/src/ios/MediaPicker.m index fe4f941..55d0c8a 100644 --- a/src/ios/MediaPicker.m +++ b/src/ios/MediaPicker.m @@ -111,8 +111,6 @@ NSString* orientation=[nsdic objectForKey:key]; [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:orientation] callbackId:callbackId]; - - }