Objective C: Writing our own Classes
Every Objective-C class has exactly one superclass (parent), except for the root class of the entire hierarchy: NSObject. At the very minimum, every class will inherit from NSObject.
To begin writing our own classes, select File >New File in your Xcode editor.

Select the “Objective-C class” template and choose the NSObject option from the next screen.

And finally, on the 3rd screen before Xcode creates all the .h and .m files and boiler plate code for us, we have an opportunity to name our new class (and if need be, place these new files defining our class in a specific directory). :-)

And once we hit “Save”, we will see the boiler plate code generated for our custom class named “MyClass” (or whatever name you gave it) and 2 new files MyClass.h and MyClass.m created by Xcode.

In our next Objective-C post, we will delve into the details of our Objective-C class and the various keywords which we should be familiar with in a class.
Pingback: iOS dev launcher: Session #1 SaveThePrincess - Calvin's