Reputation: 130
How can I add the black bar in the above of keyboard when it appears. I mean the bar when you click on the search box of Safari appears above keyboard and let you search on the page? And How I can customize the bar?
Upvotes: 0
Views: 780
Reputation: 815
It is accessory view.
you can add like this
textField.inputAccessoryView = toolbar
and you need to add it in textfield delegate methods
if you need a good tutorial one this, please refer below link
http://www.theappcodeblog.com/2011/02/27/keyboard-tutorial-part-3-add-a-toolbar-to-the-keyboard/
Upvotes: 1
Reputation: 16337
It's called an accessory view. This tutorial should give you a starting point.
Upvotes: 0