开发者

set custom uibuton look like iPhone UI without an image

does anyone have the code to emulate the iPhone's look and feel of the UIButton programmatically or t开发者_运维百科hrough interface builder. To be more exact I would like to emulate the cancel and ok buttons of this image:

set custom uibuton look like iPhone UI without an image

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

I don't want to use an image.


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.


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜