Objective C

Submitted by: Submitted by

Views: 44

Words: 26481

Pages: 106

Category: Science and Technology

Date Submitted: 02/09/2015 10:00 AM

Report This Essay

Objective-C Tutorial

OBJECTIVE-C TUTORIAL

Simply Easy Learning by tutorialspoint.com

tutorialspoint.com

i

ABOUT THE TUTORIAL

Objective-c tutorial

Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. This is the main programming language used by Apple for the OS X and iOS operating systems and their respective APIs, Cocoa and Cocoa Touch. This reference will take you through simple and practical approach while learning Objective-C Programming language.

Audience

This reference has been prepared for the beginners to help them understand the basic to advanced concepts related to Objective-C Programming languages.

Prerequisites

Before you start doing practice with various types of examples given in this reference, I'm making an assumption that you are already aware about what is a computer program and what is a computer programming language?

Compile/Execute Objective-C Programs

For most of the examples given in this tutorial, you will find Try it option to compile and execute Objective-C programs online, so just make use of it and enjoy your learning. Try the following example using Try it option available at the top right corner of the below sample code box: #import int main() { /* my first program in Objective-C */ NSLog(@"Hello, World! \n"); return 0; }

TUTORIALS POINT Simply Easy Learning

Page 1

Table of Content

Objective-c tutorial ................................................................... 1 Audience .................................................................................. 1 Prerequisites ............................................................................ 1 Compile/Execute Objective-C Programs .................................... 1 Objective-C Overview .............................................................. 9

Object-Oriented Programming ................................................................... 9...