iPhone SDK: Working with the UITableView Class – Part 1

iPhone SDK: Working with the UITableView Class – Part 1

Tutorial Details
  • Technology: iPhone SDK 3.2-4
  • Difficulty: Beginner
  • Completion Time: 20 - 40 Minutes

Welcome to the first in a two-part series on using the UITableView class with the iPhone SDK! In this tutorial, we will cover the fundamentals of the UITableView class and the UITableViewDelegate and UITableViewDataSource protocols. By the end of this tutorial, you will understand the basics of how these components fit together, and you will be on your way to creating your own table view based applications!

More On Table Views:

The iPhone SDK documentation describes a table view as a view that represents data in a single column with multiple rows. Table views are frequently used in productivity applications, but have many other, more creative implementations as well. A few examples of official Apple iOS applications that use table views are: iPod, Photos, and Settings. As you can see from these applications, table views help organize information easily. They can be used with the default UI to match other iPhone applications, or they can be completely customized for use in your own custom skin.

The UITableView class renders the cells that display data while the UITableViewDataSource and UITableViewDelegate protocols work in the background to provide that data to the class and respond to table view related events. Table views can be created with two different basic methods. The first method, which is shown in this tutorial, is by adding the table view as a subview of a normal view controller. The second way is to implement a table view directly by using UITableViewController in place of a custom view controller. The table view is a highly customizable class that is extremely efficient to use.

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.treplex.se nicklas

    Great tutorial. I learnt some new stuff here

  • Ben

    Looking forward to seeing the second part. Hope it follows shortly. Thank you.

  • blp

    Great tutorial!

  • Martin Jones

    Great Tutorial – when is the second part due?

    • http://mobile.tutsplus.com Mark Hammonds

      Part 2 just launched today! Check the link above underneath the video player.

  • Johnny

    Awesome Tutorial,

    very well explained for a beginner such as myself.

    Great Job.

    keep it up.

  • Vasilis

    Great Tutorial,thank you very much…
    Keep it up

  • Lynn Gobin

    Thank you so much for your great tutorial. What was appreciated more than anything else were your imbedded tips for using Xcode, memory management and conventions for organizing a file (such as pragma marks).

  • Sam

    Great Tutorial! Thank you!

  • Dervesh

    i am new in this programming field please Email me all of your Tutorials right from the beginning

    Thanks and Regards

    this one tut is nice one but learnt a bit :)

  • Johann Junge

    Your tutorial is very clear, systematic, and super helpful.
    The way you go about using the SDK is logical and makes working with code much more pleasant.
    This is the best tutorial I have come across so far!! Thank you very much indeed.

    Johann Junge, Kyoto, Japan

  • suhail larik

    Nice tutorial! keep continue for more tutorials
    Thanks…..

  • theprof

    Hi – I am a graduate student in Boston, this was a great tutorial thank you so much for your effort! Many thanks and please keep up the good work.

  • ramwsh

    For Ios Developers the main thing is UI Controls..

    here somebody Provided a nice document on UI Controls..

    UI Controls