Classes General

Objects are defined in classes and therefore these two terms are often used interchangeably.  Each object is actually an instance of a class. (more…)

Create class based on an existing class

 

This example demonstrates a new class being created based on the Table View Cell class

(more…)

Creating A New Class

Create the new class

Menu > File > New File > iPhone OS > Cocoa Touch> Objective-C class
(more…)

Creating An Initialisation Function

Create your own initialise function

//**************************************
//**************************************
//********** CLASS INITIALISE **********
//**************************************
//**************************************
//Override the default init in case our class is created using init instead of our initialse funciton (no need to declare in .h file as we're overriding a superclass method)
- (id)init
{
	return [self initMyInitFunctionName:@""
						 Value1:0];
}

 (more...)

Global Classes

The best way to create a global class is to create a Singleton Instance.  The Apple description of this is here.

(more…)