123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // FKVipPrivilegeDetailCollectionCell.m
- // FirstLink
- //
- // Created by ascii on 2017/5/19.
- // Copyright © 2017年 FirstLink. All rights reserved.
- //
- #import "FKVipPrivilegeDetailCollectionCell.h"
- @implementation FKVipPrivilegeDetailCollectionCell
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- [self setupViews];
- }
- return self;
- }
- #pragma mark - Method
- - (void)setupViews {
- [self addSubview:self.titleLabel];
- [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.edges.equalTo(self);
- }];
-
- [self addSubview:self.rightLine];
- [self.rightLine mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.right.bottom.equalTo(self);
- make.width.mas_equalTo(1.0/[UIScreen mainScreen].scale);
- }];
-
- [self addSubview:self.bottomLine];
- [self.bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.bottom.equalTo(self);
- make.height.mas_equalTo(1.0/[UIScreen mainScreen].scale);
- }];
- }
- #pragma mark - Property
- - (UILabel *)titleLabel {
- if (!_titleLabel) {
- _titleLabel = [UILabel new];
- _titleLabel.font = [UIFont systemFontOfSize:12];
- _titleLabel.textColor = UIColorFromRGB(0x292929);
- }
- return _titleLabel;
- }
- - (UIView *)rightLine {
- if (!_rightLine) {
- _rightLine = [UIView new];
- _rightLine.backgroundColor = UIColorFromRGB(0xe5e5e5);
- }
- return _rightLine;
- }
- - (UIView *)bottomLine {
- if (!_bottomLine) {
- _bottomLine = [UIView new];
- _bottomLine.backgroundColor = UIColorFromRGB(0xe5e5e5);
- }
- return _bottomLine;
- }
- @end
|