Tham khảo tài liệu 'phát triển ứng dụng cho iphone và ipad - part 13', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 4 iPad Interface Elements WHAT S IN THIS CHAPTER Building a master-detail view using the UISplitViewController Displaying informational messages using the UIPopoverController Recognizing and reacting to various user gestures using the UIGestureRecognizer Sharing files between the iPad and desktop machines with file-sharing support In the previous chapter you learned how to display your application data using the UITableView control. Then you took that knowledge a step further by building custom cells adding search and filter capabilities and implementing indexes and section headers. In this chapter you learn about the interface elements and other features that are unique to the iPad. You will then apply this knowledge to build better data-driven applications. You will explore the UISplitViewController and UIPopoverController which you can use when building iPad applications. You will also learn how to use the new UIGestureRecognizer class and its subclasses to interpret user gestures. Finally you will learn how to share files between the iPad and desktop computers using file-sharing support. DISPLAYING MASTER DETAIL DATA WITH THE UISPLITVIEWCONTROLLER Quite often when you re building a data centric application you will want to show data in a master detail format. For instance in an address book application the master view typically consists of a simple list of contact names. Selecting a contact from the list then presents the details for that contact such as address phone number and company. 90 I CHAPTER 4 IPAD INTERFACE ELEMENTS On the iPhone you generally build master detail displays using the Navigation Controller. You would typically use a UlTableView to show the master records. Tapping on a master record advances the user to a second screen that displays the details for the record that the user selected. Because there is very limited space on the iPhone screen two separate screens are necessary to display the master and detail data. The catalog application .