views:

115

answers:

2

Hello everyone, does anyone have the code to emulate the iPhone's look and feel of the UIButton programmatically or through interface builder. To be more exact I would like to emulate the cancel and ok buttons of this image: http://www.machwerx.com/wp-content/uploads/2009/10/password.png

I don't know why it's not built into the SDK.

I don't want to use an image.

Thanks...

A: 

Have you looked at the UICatalog sample code on the iphone developer site? It contains code to create a custom button.

ennuikiller
I would like to be able to emulate the look and feel of the iPhone UI buttons with code and without using an image. The UICatalog doesn't have that sample.
Jonas Stawski
A: 

Stop. Right now. Those buttons come for free in any UIAlertView. If you want to use them anywhere else, think again. The reason they didn't include them for nonstandard use is that people with no UI sense would use them to do disgusting things.

Jonathan Sterling