Table View Application In iPhone

Table View Application in iPhone

In this application we will see how to content delete , edit from the Table View. So let see how it will worked.

Step 1: Open the Xcode, Create a new project using View Base application. Give the application “TableView”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Expand classes and notice Interface Builder created the FirstViewController and SecondViewController
class for you. Expand Resources and notice the template generated a separate nib, TableViewViewController.xib for the TableView application.

Step 4: Open the TableViewAppDelegate.m file make the following changes:






Step 6: Double click the TableViewViewController.xib file and open it to the Interface Builder. First drag the table view from the library and place it to the view window.Select the Table View from the view and bring up Connection Inspector and connect datasource to File’s owner icon and delegate to the File’s owner icon. Now save the .xib file, close it and go back to the Xcode.

Step 7: Open the TableViewViewController.m file make the following changes:




Step 8: Now Compile and run the application on the Simulator.

You can Download SourceCode from here

Comments 2

Leave a Reply

Your email address will not be published. Required fields are marked *