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 ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.