开发者

Create a UIBarButtonItem with a title, and an image, and the default background

开发者 https://www.devze.com 2022-12-15 02:00 出处:网络
I am trying to create a UIBarButtonItem that looks like the normal Apple ones, but I\'d like to include an im开发者_高级运维age and a piece of text.

I am trying to create a UIBarButtonItem that looks like the normal Apple ones, but I'd like to include an im开发者_高级运维age and a piece of text.

As far as I can tell, you can't specify both an image and a title (the image shows but the title doesn't if you set both).

Also, if you use a customView, then you lose the BarButtonItem look and feel.

What's the best thing to do here? Mimic the artwork and use a customView?


Mimic the artwork and use a custom view is what we did with our apps.. Seems to be the only way.

0

精彩评论

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