本文解答了关于《大连零基础监理工程师考试培训班》相关内容,同时关于1、大连监理工程师报考条件,2、大连全国监理工程师报名网站,3、大连监理工程师省证考试时间,4、大连监理工程师省证,5、大连监理证挂靠,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
零基础监理工程师考试培训班";
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:str];
[attributedString addAttribute:(NSString *)kCTForegroundColorAttributeName
value:(id)[UIColor blueColor].CGColor
range:NSMakeRange(0, str.length)];
// Add Font
[attributedString addAttribute:(NSString *)kCTFontAttributeName
value:(id)[UIFont systemFontOfSize:14].CTFont
range:NSMakeRange(0, str.length)];
// Add LineSpacing
if (lineSpacing < 0.01
lineSpacing > 5.0) {
lineSpacing = 3.0f;
}
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
paragraphStyle.lineSpacing = lineSpacing;// 字体的行间距
[attributedString addAttribute:NSParagraphStyleAttributeName
value:paragraphStyle
range:NSMakeRange(0, str.length)];
// Add UnderLine
if (isUnderLine) {
[attributedString addAttribute:NSUnderlineStyleAttributeName
value:[NSNumber numberWithInt:NSUnderlineStyleSingle]
range:NSMakeRange(0, str.length)];
}
return attributedString;
}
// 创建 item
+ (UIBarButtonItem *)createItemWithTitle:(NSString *)title
norImage:(NSString *)norImage
highlightImage:(NSString *)hightlightImage
target:(id)target
selector:(SEL)selector
{
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
// Nomal
[button setTitle:title forState:UIControlStateNormal];
[button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[button setImage:[UIImage imageNamed:norImage] forState:UIControlStateNormal];
[button sizeToFit];
// HighLight
[button setTitleColor:[UIColororangeColor] forState:UIControlStateHighlighted];
[button setImage:[UIImage imageNamed:hightlightImage] forState:UIControlStateHighlighted];
[button addTarget:target action:selector forControlEvents:UIControlEventTouchUpInside];
return [[UIBarButtonItem alloc] initWithCustomView:button];
}
@end
总结:以上是编辑:【gdilwnhc】整理及AI智能原创关于《大连零基础监理工程师考试培训班
》优质内容解答希望能帮助到您。