Objective-c - Change the color of the search key in iOS search mode as shown
过去多啦不再A梦2017-05-02 09:26:00
0
2
665
1. After entering text in textFiled, the blue highlighted by the return key or the Search key turns into the same black and white text as other colors. Looking for a solution
If I remember correctly, there should be no direct way to change it. If you must implement this kind of thing, you can only save the country by taking a curve:
Before or after the keyboard pops up (willShow, didShow Notification), get the view of the keyboard, then traverse to find the Search button you want, and then paste a custom button on it, change the color, implement the return function, etc. .
Overlay a brand new View on the keyboard, customized by you, and you can do whatever you want.
Use a customized keyboard to do what Sogou input method does
Some other methods, I don’t know
I have never done this. The above are just some of my thoughts, which do not mean they are correct.
If I remember correctly, there should be no direct way to change it. If you must implement this kind of thing, you can only save the country by taking a curve:
Before or after the keyboard pops up (willShow, didShow Notification), get the view of the keyboard, then traverse to find the Search button you want, and then paste a custom button on it, change the color, implement the return function, etc. .
Overlay a brand new View on the keyboard, customized by you, and you can do whatever you want.
Use a customized keyboard to do what Sogou input method does
Some other methods, I don’t know
I have never done this. The above are just some of my thoughts, which do not mean they are correct.
How about using notifications. When you click search, a notification is sent and the color changes.