// // previewLandscapeTopMoreView.m // Private-X // // Created by xd h on 2024/7/12. // #import "previewLandscapeTopMoreView.h" @implementation previewLandscapeTopMoreView - (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.3]; [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:@"#333333"]; [self addSubview:whiteBgView]; whiteBgView.layer.cornerRadius = 8; whiteBgView.layer.masksToBounds = YES; [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(65); make.right.mas_equalTo(-16); make.width.mas_equalTo(112); make.height.mas_equalTo(120); //make.height.mas_equalTo(150); }]; NSArray *butImageArr = @[@"edit_download_white_icon",@"edit_del_white_icon"]; NSArray *butTextArr = @[NSLocalizedString(@"my_set_no_File_download",nil), NSLocalizedString(@"File_upload_Record_delete",nil)]; CGFloat butHeight = 50.0; for (int i=0; i