O'Reilly logo

The Core iOS Developer’s Cookbook, Fifth Edition by Rich Wardwell, Erica Sadun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Buttons

UIButton instances provide simple buttons. Users can tap them to trigger a callback via target-action programming. You specify how the button looks, what art it uses, and what text it displays.

iOS offers two ways to build buttons. You can use a typed button, selected from several predesigned styles, or build a custom button from scratch. The current iOS SDK offers very limited precooked types. In iOS 7, the entire UI has been redesigned with a flat, minimalistic design. One of the most noteworthy results of this redesign is the deprecation of the timeworn rounded rectangle. The upshot is the addition of a very new style of button, one that is plain (but bolded) text—the UIButtonTypeSystem type. In addition, many of the remaining button ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required