// // previewVideoLandscapeTopMoreView.m // 双子星云手机 // // Created by xd h on 2024/7/13. // #import "previewVideoLandscapeTopMoreView.h" @implementation previewVideoLandscapeTopMoreView - (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.1]; [self drawAnyView]; return self; } -(void)drawAnyView { //大按钮响应 UIButton *bigRightButton = [[UIButton alloc] init]; bigRightButton.tag = 1; [bigRightButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside]; [self addSubview:bigRightButton]; //bigRightButton.backgroundColor= [UIColor greenColor]; [bigRightButton mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(0); make.left.mas_equalTo(0); make.right.mas_equalTo(0); make.bottom.mas_equalTo(0); }]; UIView *whiteBgView = [[UIView alloc] init]; whiteBgView.backgroundColor = [UIColor hwColor:@"#1E1E1E" alpha:0.9]; [self addSubview:whiteBgView]; whiteBgView.layer.cornerRadius = 8; whiteBgView.layer.masksToBounds = YES; [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(0); make.right.mas_equalTo(10); make.width.mas_equalTo(310+10); make.bottom.mas_equalTo(0); //make.height.mas_equalTo(150); }]; UILabel *moreLabel =[[UILabel alloc] init]; moreLabel.text = NSLocalizedString(@"NAS_preview_video_more_tip",nil); moreLabel.textColor = [UIColor whiteColor]; moreLabel.font = [UIFont boldSystemFontOfSize:14.0]; [whiteBgView addSubview:moreLabel]; [moreLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(15); make.right.mas_equalTo(0); make.height.mas_equalTo(20); make.top.mas_equalTo(20); }]; NSArray *butImageArr = @[@"nas_preview_share_white",@"edit_download_white_icon",@"edit_del_white_icon"]; NSArray *butTextArr = @[NSLocalizedString(@"common_edit_share",nil), NSLocalizedString(@"my_set_no_File_download",nil), NSLocalizedString(@"File_upload_Record_delete",nil)]; CGFloat butHeight = 40.0; CGFloat butTopSpace = 15.0; for (int i=0; i