开发者

initializing a UIBarButtonItem with a UIImage and resizing the image in iOS

开发者 https://www.devze.com 2023-03-28 17:59 出处:网络
I am trying to initialize a UIBar开发者_运维技巧ButtonItem with an Image. The available method is initWithImage. When I do this, the image is just a block of color. I want to be able to resize this im

I am trying to initialize a UIBar开发者_运维技巧ButtonItem with an Image. The available method is initWithImage. When I do this, the image is just a block of color. I want to be able to resize this image. How do I do that?


Internal UIBarButtonItem images need to be one solid color (system turns it into white if you don't) with an alpha channel for transparency.

0

精彩评论

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