January 2012
Beginner
655 pages
16h 35m
English
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
Answers to the exercises can be found in Appendix D.
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 ... |