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

Presenting Lists of Options

UIActionSheet instances create simple iOS menus. On the iPhone and iPod touch, they slide choices—basically a list of buttons representing possible actions—onto the screen and wait for the user to respond. On the iPad, they appear in popovers and do not display Cancel buttons. Instead, users cancel actions by tapping outside the popovers.

Action sheets are different from alerts, although both classes derive from the same origins. They were split into separate classes early in iPhone history. Alerts stand apart from the interface and are better used for demanding attention. Menus slide into a view and better integrate with ongoing application work. Cocoa Touch supplies five ways to present menus:

showInView:On the ...

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