Scrolling Menus

As a rough rule of thumb, you can fit a maximum of about 10 buttons (including Cancel) into a portrait orientation and about 5 buttons into landscape on the iPhone and iPod touch. (There’s quite a bit more room on the iPad.) Going beyond this number triggers the scrolling presentation shown on the right in Figure 3-3. Notice that the Cancel button is presented below the list, even when scrolling is activated. The Cancel button is always numbered after any previous buttons. As Figure 3-3 demonstrates, this presentation falls fairly low on the aesthetics scale and should be avoided where possible.

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.