Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

13. Alerting the User > Recipe: Basic Popovers

Recipe: Basic Popovers

At the time this book is being written, popovers remain an iPad-only feature. Often you’ll want to present information using a popover as an alternative to presenting a modal view. There are several basic rules of popovers that you need to incorporate into your day-to-day development:

Always hang onto your popovers. Create strong local variables that retain your popovers until they are no longer needed. In Recipe 13-5, the variable is reset once the popover is dismissed.

Always check for existing popovers and dismiss them. This is especially important if you create popovers with different roles in your apps. For example, you may provide popovers for more than one bar button item. Before you present any new popover, dismiss the existing one.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint