// // uploadFileRecordheadView.m // 隐私保护 // // Created by xd h on 2023/11/15. // #import "uploadFileRecordheadView.h" @interface uploadFileRecordheadView() @property(nonatomic,strong) UIView *selectBgView;// @property(nonatomic,assign) CGFloat butWidth;// @end @implementation uploadFileRecordheadView - (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; [self drawAnyView]; return self; } - (void)drawAnyView{ [self setBackgroundColor:[UIColor hwColor:@"#F9F9F9" alpha:1.0]]; self.layer.cornerRadius = 8; NSString *leftStr = NSLocalizedString(@"my_set_no_File_upload",nil); NSString *midStr = NSLocalizedString(@"my_set_no_File_download",nil); NSString *rightStr = NSLocalizedString(@"my_set_no_File_backups",nil); NSString *fourStr = NSLocalizedString(@"my_set_no_File_receive_title",nil); NSArray *titleArr = @[leftStr,midStr,rightStr,fourStr]; _butWidth = (SCREEN_W - 30)/titleArr.count; NSString *languageCode = [NSLocale preferredLanguages][0]; CGFloat fontSize = 14.0; if([languageCode rangeOfString:@"ja-"].location != NSNotFound) { fontSize = 8; } for (NSInteger i=0; i_selectBgView.frame = frame; }]; } @end