UIButton looks great in InterfaceBuilder, but not on iPad sim or device

In InterfaceBuilder, I create the simplest UIButton possible by simply dragging it from the Library panel into my view. After that I get a nice UIButton that looks like this:

Pretty image http://img683.imageshack.us/img683/760/screenshot20100410at111g.png

When I view in simulator or view on my iPad device, my UIButton has a line below it, for example:

Ugly image http://img532.imageshack.us/img532/8863/screenshot20100410at111.png

Does anyone else have this problem? Anyone have a fix?

+2


source to share


1 answer


It's by design. iPad UI is different from iPhone anyway.



If you don't want a shadow, create a custom (stretchable) background image.

+2


source







All Articles