| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //
- // YRHomeFooter.m
- // UU_Ent
- //
- // Created by liujl on 2019/9/20.
- // Copyright © 2019 UAS. All rights reserved.
- //
- #import "YRHomeFooter.h"
- @implementation YRHomeFooter
- - (instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self) {
-
- [self createUI];
-
- }
- return self;
- }
- -(void)createUI{
-
- self.backgroundColor = HexColor(@"#F6F6F6");
-
- UIImageView *addView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"UU_首页_添加"]];
-
- [self addSubview:addView];
-
- [addView mas_makeConstraints:^(MASConstraintMaker *make) {
-
- make.centerX.equalTo(self);
- make.top.equalTo(self).offset(40);
- make.width.height.mas_equalTo(50);
-
- }];
-
-
- UILabel *bottomLabel = [UILabel new];
-
- [self addSubview:bottomLabel];
-
- bottomLabel.font = FONT_SIZE(14);
- bottomLabel.text = @"到底啦~手下留情喔~";
- bottomLabel.textColor = HexColor(@"#CCCCCC");
-
- [bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-
- make.centerX.equalTo(self);
- make.bottom.equalTo(self).offset(-40);
- make.width.mas_greaterThanOrEqualTo(@60);
- make.height.mas_greaterThanOrEqualTo(@40);
-
- }];
-
- }
- @end
|