开发者

Best way to create a numeric pad as seen in Apples telephone app

What is the best way to create a numeric pad like the one Apple uses in开发者_如何学C the telephone app?

Best way to create a numeric pad as seen in Apples telephone app


I would say just create an array of UIButton objects so that you can utilize UIControlStateSelected and the other button states by using different images for different states.

Another idea is to create something similar to that entire keypad in Photoshop, and then tile it into 12 images using http://www.mikelin.ca/blog/2010/06/iphone-splitting-image-into-tiles-for-faster-loading-with-imagemagick/

That would take some of the work out of get all the images to flow nicely together.

By the way, I just forgot about these until just a minute ago... they have some of the UI graphics from the iPhone and iPad in high res PSD file:

http://www.teehanlax.com/blog/2010/02/01/ipad-gui-psd/

and

http://www.teehanlax.com/blog/2010/08/12/iphone-4-gui-psd-retina-display/

and

http://www.teehanlax.com/blog/2010/06/14/iphone-gui-psd-v4/


I implemented a KeypadView, that is customizable via a delegate.

This github repository has the KeypadView and a delegate-implementation.

As I am still beginner in the field of iOS development I would appreciate, if you share your thoughts with me.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜