Wednesday, 13 November 2013

 About IOS Development     


Why To Learn Objective C And IOS Development ?

iOS Development is the world's most advanced mobile OS and it is contoniously growing in almost each and every country in world due to its unique design, graphics and quality. Together with the iOS SDK and Xcode IDE you can make it easy and more revoloutionary application .  iPhone currently holds a large portion of market shares in mobile platform . That's the main reason why you should learn to develop the iPhone application developmnet.

Let's Start With Introduction :

Objective C is the core programing language used for thr development of Apple iOS and OSX operating System. Along with objective C , you will develop iPhone app with Cocoa Touch. 

Cocao Touch is a collection of  framework and API used for development of ios application . Some of Important framework of cocoa touch are as :


Foundation Framework :

Foundation framework is very basic framework and contain all wrapper classes and data structure classes. It include the root object class, classes representing basic data types such as string , array , dictionary and other collection classes for storing objects.

We don't need to import this framework into our project as it is added by default. We can directly access its clasess by creating thier object and acessing thier methods. Such as :

To Store Value in a Dicttionary in Objective C we can do as :

# We create object of NSDictionary class and allocate it.
  NSDictionary *mydictionary=[[NSDictionary alloc]init];

# We have inserted value in NSDictionary with some key.
[mydictionary setObject:@"value" forKey:@"one"];

Dictionary store data  in key valur pair , so we have store value with some unique key so that we can retrive it later on using that key.

UIKit Framework :

UIKit Framework consist of all basic UI classes that is needed to create UserInterface of our Application. It Provides classes needed to create and manage an application's user interface for ios.
Whatever we see on screen such as Window , view , button , TextView are all contained in thie Framework.

Game Kit Framework :

Game Kit Frameowrk is used for creating games in ios platform. It contain all the classes and method that you can use to create your own games.

iAd Framework : 

iAd Framework is just for developer to earn revenue from thier application by allowing Apple to display advertisements on thier application.

Map Kit Framework:

MapKit Framework is used to integerate map directly into ios application . We can add annotaion , adding overlay , show used location and perform reverse- geocoding lookups to determine placemark information for a given map coordinates.

   
             Basic tool that we used for creating ios Applocation is : XCode 


 XCode : 

It is a tool that is used to create ios application . It is very user friendly and have code sense feature that help developer is writting correct code. Xcode check for gramatical and syntax error and gives warning and error .










1. What is Class  ? 

Class is a collection of  variable and methods . It binds them together into a single unit and thus implement concept of encapsulation. The Class define all the common properties of different object s that it contain .

For Example :  There might be a class shape that contains objects which are circle , rectangle and triangles ( These objects might have property like colour , height , width , Area ).

2. Object 

Objects can be any real world entity having some physical characterstics and property .

In the above Example : Shape is a class and circle , rectangle , traiangle are its objects and have thier own charcterstics such as thier color , size etc .

3. OOP Concept  ( Object Oriented Programing ) 

OOP stands for Object Oriented Programming language . In Generals in OOP we consider every real world entity as  objects and these objects were used to interact with each other to do certain well defined task.

Object-oriented problem solving approach is very similar to the way a human solves daily problems. It consists of identifying objects and how to use these objects in the correct sequence to solve the problem. In other words, object-oriented problem solving can consist of designing objects whose behavior solves a specific problem. A message to an object causes it to perform its operations and solve its part of the problem.

The object-oriented problem solving approach, in general, can be devided into four steps.

They are:

 (1) Identify the problem.
(2) Identify the objects needed for the solution.
(3) Identify messages to be sent to the objects.
(4) Create a sequence of messages to the objects that solve the problem.

Basic OOPs Feature are :

# Polymorphism
# Encapsulation
# Abstraction
# Inheritance

Polymorphism : It simply means many forms . It is a state in which an object can be treated as different type for different purpose. A single object with many forms.

Simple example of polymorphism is :

A Person is an object and It can behave differently with different people. Such as person can be someone Friend , For some other it can be brother , father and son to some other . so Object " Person " can have different property and behaviour under different circumstances.

so this different role of single person can be termed as polymorphism.


Encapsulation : It is wraping up of data and function into a single unit . Class is an exapmple of encapsulation.

A class group all method and fucntion and support Encapsulation.

Abstraction :  Abstraction is act of representing essential features without including background details.

In Abstraction we hide the complexity of a task and show only necessary information to user so as to carry out that task . Its general example can be a Capsule

In Capsule we hide all compext medicine and patient can take it easily .


Inheritance :  It means to inherit features from one class to other . It is same as a child inherit some qualities from his parent.  By Inhertance we can get some code reusability . The class which is inherited is called base class and Class that inherit property from base class is called derived class.










No comments:

Post a Comment