Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book