开发者

How to draw UIButton with tint color like UIToolbar

开发者 https://www.devze.com 2023-01-23 08:43 出处:网络
I want to customize my button like those UIBarButtonItems on a UIToolbar with tint color. Does 开发者_StackOverflowany one know how to draw that tint effect?I went nuts trying to figure this out once.

I want to customize my button like those UIBarButtonItems on a UIToolbar with tint color. Does 开发者_StackOverflowany one know how to draw that tint effect?


I went nuts trying to figure this out once.

The best I could do was to do my own "custom" button, and use it as the button's "image".

The real hard part was getting the font right. The web said it was supposed to be "Helvetica" I believe - but it never looked right.


The thing you're trying to do isn't supported. You should just make your own button that looks the way you want it to and set it as the customView of the button item object.

0

精彩评论

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

关注公众号