开发者

Add bookmark button to UITextField.rightView?

i have an UISearchBar with bookmark button on right. Like this:

Add bookmark button to UITextField.rightView?

Now, i have a UITextField with a text on leftView and a button on right view:

Add bookmark button to UITextField.rightView?

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

Add bookmark button to UITextField.rightView?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜