123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // FKSelectAlertView.m
- // FirstLink
- //
- // Created by jack on 16/4/8.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKSelectAlertView.h"
- @interface FKSelectAlertView ()
- @property (nonatomic, strong) UILabel *contentLabel;
- @end
- @implementation FKSelectAlertView
- - (instancetype)initWithFrame:(CGRect)frame{
- if (self = [super initWithFrame:frame]) {
- [self addAllSubviews];
- }
- return self;
- }
- - (void)addAllSubviews{
-
- self.backgroundColor = UIColorFromRGB(0xf4f4f4);
-
- [self addSubview:self.contentLabel];
- [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(self).offset(15);
- make.right.equalTo(self).offset(- 15);
- make.centerY.equalTo(self);
- }];
- }
- - (UILabel *)contentLabel{
- if (_contentLabel == nil) {
- _contentLabel = [[UILabel alloc]init];
- _contentLabel.textColor = UIColorFromRGB(0x999999);
- _contentLabel.font = [UIFont systemFontOfSize:12];
- _contentLabel.numberOfLines = 0;
-
- NSString *title = @"温馨提示:以上信息均由海外官网提供,仅供参考,恕不接受色差尺码问题的退换货。";
- NSMutableAttributedString *attM = [[NSMutableAttributedString alloc]initWithString:title];
- [attM addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0xff624a) range:NSMakeRange(0, 5)];
- _contentLabel.attributedText = attM;
- }
- return _contentLabel;
- }
- @end
|