ko1o / PYSearch

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
MIT License
3.83k stars 752 forks source link

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

Open Jayxiang opened 7 years ago

Jayxiang commented 7 years ago

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

ko1o commented 7 years ago

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

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

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