SUMMARY

In this chapter, you had a good look at the Table view and learned how to customize it to display items in various formats. You also learned how to implement search functionality in the Table view, which is an essential function in real-world applications. In addition, you learned how to move between View windows in a Navigation-based application.

EXERCISES

  1. Name the two protocols to which your View Controller must conform when using the Table view in your view. Briefly describe their uses.
  2. Which method should be implemented if you want to add an index to a Table view?
  3. Name the three disclosure and checkmark accessories that you can use. Which one handles user taps?

Answers to the exercises can be found in Appendix D.

image WHAT YOU LEARNED IN THIS CHAPTER

TOPIC KEY CONCEPTS
Adding items to a Table view Handle the various events in the UITableViewDataSource protocol.
Allowing users to select rows in a Table view Handle the various events in the UITableViewDelegate protocol.
Adding images to rows in a Table view Use the image property of the UITableViewCell class and set it to an instance of the UIImage class containing an image.
Using a property list with a Table view Use the following code snippet to locate the property list:NSString *path = [[NSBundle mainBundle]pathForResource:@“Movies”ofType:@“plist”];Then use a combination of NSDictionary and NSArray objects ...

Get Beginning iOS 5 Application Development 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.