views:

93

answers:

2

What is the best way to create a numeric pad like the one Apple uses in the telephone app? alt text

+2  A: 

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/

iWasRobbed
not _just_ an array, an NSArray ;-)
Kris
+1  A: 

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

This gist has the KeypadView and a delegate-implimentation.

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

vikingosegundo
For being a "beginner," I think you're doing just fine lol.
iWasRobbed
Thanks. I try to learn.
vikingosegundo