i have an UISearchBar with bookmark button on right. Like this:
Now, i have a UITextField with a text on leftView and a button on right view:
I created button on textField using default buttons
[UI开发者_如何学JAVAButton buttonWithType:UIButtonTypeContactAdd]
Is there a way to add in UITextField, on rightView, a bookmark button like the button in UISearchBar???
thanks.
Easiest is just to take a screenshot of the bookmark button, clean it up in gimp/photoshop if need be, and use it as the image in a custom UIButton
Edit: like this: quite easy, just make the button and place it in interface builder on top of the text field
精彩评论