Posts

Showing posts with the label #Objective C Basics

iOS - Objective C Basics

The language used in iOS development is objective C. It is an object-oriented language and hence, it would be easy for those who have some background in object-oriented programming languages. To learn ios app development course visit: ios online training Interface and Implementation In Objective C, the file where the declaration of class is done is called the interface file and the file where the class is defined is called the implementation file. A simple interface file MyClass.h would look like the following − @interface MyClass:NSObject { // class variable declared here } // class properties declared here // class methods and instance methods declared here @end The implementation file MyClass.m would be as follows − @implementation MyClass // class methods defined here @end Object Creation Object creation is done as follows − MyClass *objectName = [[MyClass alloc]init] ; Methods Method is declared in Objective C as follows − -(returnType)methodName...