简体   繁体   中英

How can I implement semicircle-shaped buttons in iPhone applications

I got a iPhone app design made in Photoshop. I converted the PSD file to PNG format.

I found it difficult to implement, especially on some portions like semicircle-shaped buttons.

How can I implement this semicircle-shape as two buttons?

在此处输入图片说明

You can try the following link. It works amazingly

Visit http://iphonedevelopment.blogspot.in/2010/03/irregularly-shaped-uibuttons.html

Draw two quarter circle images in Photoshop, saved at PNG files. In your nib file make two custom buttons the size of the quarter circles, each with one of these quarter circle images. Place the two buttons next to each other. You can embellish the buttons by drawing the various states of the button as separate PNG files, and add those images to the nib file definition of the buttons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM