开发者

Better buttons for iPhone game ? Non square?

开发者 https://www.devze.com 2023-01-22 22:34 出处:网络
Sorry if a stupid question, but I currently have an iPhone game which uses UI Kit butons for it\'s menu interface with a custom background. How could I impr开发者_开发问答ove the look and feel of my b

Sorry if a stupid question, but I currently have an iPhone game which uses UI Kit butons for it's menu interface with a custom background. How could I impr开发者_开发问答ove the look and feel of my buttons - e.g how can I use custom non square shapes ?

Thanks all,

Martin


UIButton actually has support for non-rectangular shapes. Simply use an image file that has an alpha channel (such as PNG) that defines the bounds of the button.

0

精彩评论

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