Implementing the View Controller class

In this recipe, we will start to implement additional functionality to our ViewController class, as well as importing some very important header files and extend our class.

Getting ready

Following on from our previous recipe, ensure that our SocialNetworkApp project file is open.

How to do it...

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

  1. Open the ViewController.h interface file from the Project Navigator.
  2. Next, modify the interface file as shown by the highlighted code sections:
    //  ViewController.h
    //  SocialNetworkApp
    //  Created by Steven F. Daniel on 11/12/12.
    //  Copyright (c) 2012 GenieSoft Studios. All rights reserved.
    
    #import  <UIKit/UIKit.h>
    #import "AppDelegate.h"
    
    @interface ViewController ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.