O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying data within the Table View

In this recipe we will learn how to populate a Table View Control with some data.

Getting ready

Following on from our previous recipe, we will learn how to populate our UITableViewControl from our Core Data database model.

How to do it...

To begin, follow these simple steps as outlined in the following order:

  1. Open the BooksViewController.m implementation file from the Project Navigator window.
  2. Next, modify the implementation file as shown by the highlighted code sections.
    //  BooksViewController.m
    //  BooksLibrary
    //  Created by Steven F Daniel on 03/12/12.
    //  Copyright (c) 2012 GenieSoft Studios. All rights reserved.
    
    #import "BooksViewController.h"
    
    @implementation BooksViewController
    
    @synthesize fetchedResultsController; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required