PYSearch icon indicating copy to clipboard operation
PYSearch copied to clipboard

怎么修改历史标签的字体颜色

Open Jayxiang opened this issue 8 years ago • 2 comments

没找到修改的接口 是searchHistoryTags吗 但是没效果

Jayxiang avatar Jul 24 '17 03:07 Jayxiang

@Jayxiang 提供了seachHistoryTags 存储所有历史标签(UILabel)数组,遍历设置label.textColor即可

/**
 The tags of search history
 */
@property (nonatomic, copy) NSArray<UILabel *> *searchHistoryTags;

ko1o avatar Jul 24 '17 05:07 ko1o

是这样但是当我设置完颜色后又重新走了labelWithTitle这个方法导致颜色设置失败.当我showHotSearch设置为no时就可以设置颜色,是哪里的问题.

Jayxiang avatar Jul 24 '17 06:07 Jayxiang