-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
// 一次性设置所有标题属性
- (void)setUpTitleEffect:(void(^)(UIColor **titleScrollViewColor,UIColor **norColor,UIColor **selColor,UIFont **titleFont,CGFloat *titleHeight,CGFloat *titleWidth))titleEffectBlock{
UIColor *titleScrollViewColor;
UIColor *norColor;
UIColor *selColor;
UIFont *titleFont;
if (titleEffectBlock) {
titleEffectBlock(&titleScrollViewColor,&norColor,&selColor,&titleFont,&_titleHeight,&_titleWidth);
if (norColor) {
self.norColor = norColor;
}
if (selColor) {
self.selColor = selColor;
}
if (titleScrollViewColor) {
// _titleScrollViewColor = titleScrollViewColor; 这里应该用self.titleScrollView 否则不走setter方法
self.titleScrollViewColor = titleScrollViewColor;
}
_titleFont = titleFont;
}
if (_titleColorGradientStyle == YZTitleColorGradientStyleFill && _titleWidth > 0) {
@throw [NSException exceptionWithName:@"YZ_ERROR" reason:@"标题颜色填充不需要设置标题宽度" userInfo:nil];
}
}
ieliwb
Metadata
Metadata
Assignees
Labels
No labels