Monday, February 25, 2013


Hello Newbie IPhone Developers ,Welcome to  my blog. Here you can learn the IOS programming. Before getting into the IOS Programming you should have knowledge of Objective-C. 
Now, The very first question arises that is What is exactly Objective-C?

Objective-C is object oriented programming, we can also say that it is a superset of C-Language,so it provides you the facility to use C in Objective-C. We can use any feature of C-language as well as it is Object Oriented Programming , we can also use the power of Objects .

Tools needed-

1) Mac with GCC complier or
2) Mac with XCODE , Interface Builder(GCC included)
(For XCODE visit  https://developer.apple.com/ )

Xcode is free and you can simply download on your Mac from above website.

The Whole Objective-C is divided into two parts:
1) Interface
2) Implementation

1) Interface-
 Interface is the declaration of class in which  the instance variable and methods are declared. It is suffixed with .h

The declaration of Interface ,starts with @interface and ends with @ends

for example:

@interface className : SuperClass{

instance variable declaration;
}
method declaration
@end

2) Implementation
Implementation defines the class which contains the method declared in interface. It is suffixed with .m

The declaration of implementation,starts with @ implementation and ends with @ends.

for example:

@ implementation

definition of methods(body of methods)

@end

In next tutorial i'll tell you how the Objective-C look like actually and how we can use C in Objective -C



No comments:

Post a Comment