search

Home  >  Q&A  >  body text

objective-c - 改变iOS搜索模式下搜索键的颜色,如图所示

1.textFiled 中输入文字之后 return键或者Search键高亮的蓝色变成和其他颜色一样的黑色白字求方案

2.附图如下

过去多啦不再A梦过去多啦不再A梦2757 days ago638

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:28:00

    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.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-02 09:28:00

    How about using notifications. When you click search, a notification is sent and the color changes.

    reply
    0
  • Cancelreply