综合技术

Image vs background image for UIButton

微信扫一扫,分享到朋友圈

Image vs background image for UIButton
0

I have an image that is 480×331 and has a transparent background. The transparent part is just around the image’s edges. My UIButton is 72×37. When I set the image as a background image in IB for the button, the transparent edges of the image show as white in the button. Without an image, the button is white with rounded corners. I’m guessing that is the white I see coming through. If so, it means the image transparency is working but the button’s white area is showing through.

If I set the image to the UIButton’s Image property, it doesn’t scale correctly, even after changing view mode, and remains at its full size.

Any suggestions on which property I should use to get the scaling and transparency to work right?

阅读原文...


微信扫一扫,分享到朋友圈

Image vs background image for UIButton
0

Hello, buddy!

CSS can do that?

上一篇

Google Knows That I Seamlessed Chicken Fingers Last Night

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

Image vs background image for UIButton

长按储存图像,分享给朋友