开发者

uiimageview or uibutton not square

开发者 https://www.devze.com 2023-02-21 21:50 出处:网络
Is there anyway to make an u开发者_开发技巧iimageview or uibutton that is not squared? I\'d need several images that can be clickable but dont have a squared shape.

Is there anyway to make an u开发者_开发技巧iimageview or uibutton that is not squared?

I'd need several images that can be clickable but dont have a squared shape.

Is there anyway to solve this?


Check out this thread,

Simple way of using irregular shaped buttons

Hope this will solve your problem


Use a custom button to get a different shape on the button. A usefull link (though for xcode 3) is here: http://howtomakeiphoneapps.com/2009/09/how-to-create-custom-buttons-in-interface-builder/

For UIImageView it shouldn't matter much.. Any part of the UIImageView that doesn't get filled by the picture, stays transparant if I'm not mistaken.


you can create a button and set its image or background image as required

good luck

0

精彩评论

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