Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jayxiang opened this issue Jul 24, 2017 · 2 comments
Open

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

Jayxiang opened this issue Jul 24, 2017 · 2 comments

Comments

@Jayxiang
Copy link

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

@ko1o
Copy link
Owner

ko1o commented Jul 24, 2017

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

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

@Jayxiang
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants