UILabel *titleLabel = [[UILabel alloc] init];
titleLabel.text = @"很抱歉,没有找到相关文件 您可以申请添加";
titleLabel.numberOfLines = 2;
titleLabel.font = [UIFont systemFontOfSize:13.0];
titleLabel.textColor = [UIColor colorWithHexString:@"#999999"];
//上下间距
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:titleLabel.text];;
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];
[paragraphStyle setLineSpacing:8];
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, titleLabel.text.length)];
titleLabel.attributedText = attributedString;
titleLabel.textAlignment = NSTextAlignmentCenter;
[view addSubview:titleLabel];
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(imgV.mas_bottom).offset(12);
make.left.equalTo(view.mas_left);
make.right.equalTo(view.mas_right);
}];