Monday, December 16, 2013

iOS7 > Lesson#17 - Single Table View Application with plist

Background

In this lesson, we will learn:

  • Create a single table view application (with plist)
  • Pass data from Master scene to Detail scene


<Create a single table view application (with plist)>

Step#1 - Create a new project with Master-Detailed Application Template

Follow iOS7 > Lesson#13b - Single Table View Application but use .plist to store the array objects.














Step#2 - Editing TableViewMasterViewController.m

Edit the array object in method viewDidLoad with course.plist


TableViewMasterViewController.m (viewDidLoad)



Step#3 - Run & Compile

You can see the table view contents from plist.

Master scene


Detail scene



<Pass data from Master scene to Detail scene>

Step#1 - Edit plist

course.plist

course.plist

Step#2 - Edit TableViewMasterViewController.m

TableViewMasterViewController.m



Step#3 - Edit TableViewDetailViewController.h





Step#4 - Edit TableViewMasterViewController.m

TableViewDetailViewController.m

Step#5 - Run & Compile

Master Scene

Detail Scene



No comments:

Post a Comment