ios - Create UIView with custom shape -


so wondering if there's way make uiview custom shape.

i'm trying make piano keyboard when user touches view delegate method responds playing noise. picture .png picture of key , transparent background.

thanks in advance.

you can't make uiview in shape of, say, triangle, can make view transparent, add non-transparent content it.

for example, make view background of png (with, assume, partially transparent areas) make transparent uiview , add image view it. better yet, use uiimageview in place.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -