This 4 day Objective-C training class teaches the fundamentals of programming in Objective-C, the language used to develop iPhone and iPad applications. This course covers Xcode, the integrated development environment used to build Objective-C applications. Primitive and reference variables are covered as well as arithmetic operators, conditional processing, looping, and functions. The object-oriented nature of the language is presented as well as the Foundation framework. An introduction to the Cocoa framework and a discussion of a basic user interface for mobile devices are included. We will use Xcode built-in iPhone and iPad simulators for the exercises and demonstrations in the course. In this way, students get a feel for how iPhone and iPad application development works and will be ready to move on to our iOS Application Development with Xcode 4 Training class.
Goals
- Learn how to use Xcode to develop Objective-C programs.
- Learn how to define primitive and reference variables.
- Understand the use of arithmetic operators.
- Know how to write conditional and looping statements.
- Learn how to write and call a function.
- Understand the object-oriented features of Objective-C.
- Learn how to create objects and methods.
- Understand important classes in the Foundation framework.
- Learn how to build a basic user interface using the Cocoa framework
Outline
- Objective-C Overview
- The Xcode IDE
- Projects
- Hello World Application
- Objective-C
- Brief History
- Role in Mobile Device Applications
- The Xcode IDE
- Variables
- Numeric Variables
- Numeric Representations
- Integers
- Unsigned Integers
- Floating Point
- Constants
- Comments
- Nonnumeric Variables
- char
- boolean
- Variable Scope
- Numeric Variables
- Arithmetic
- Arithmetic Operators
- Addition and Subtraction
- Multiplication, Division, and Modulus
- Shorthand Notation
- Typecasting
- Math Library Functions
- pow
- arc4random
- Arithmetic Operators
- Conditional Logic and Looping
- Conditional Statements
- Basic if Statement
- if else Statement
- if else if Statement
- switch Statement
- The Ternary Operator
- Looping Statements
- while Statement
- dowhile Statement
- for Statement
- Conditional Statements
- Functions
- Purpose of a Function
- Declaration
- Header
- Body
- Calling a Function
- Passing Parameters by Value
- Passing Parameters by Reference
- Functions vs. Methods
- Object-oriented Programming According to Objective-C
- Object-Oriented Programming (OOP)
- How Objective-C Implements OOP
- Encapsulation of Member Variables
- The class definition: Interface
- The Class Interface and @property
- Method vs. Function Syntax
- Static Variables and Class Methods
- The Class Implementation and @synthesize\
- Creating an Object from a Class
- Sending Messages to Objects
- The Role of Methods
- Visibility of Variables
- The Constants nil and NULL
- Reference Variables
- The * and & Operators
- Inheritance
- Purpose of Inheritance
- Implementing Inheritance
- The Root Class
- Creating and Processing the Subclass
- NSObject Class
- Memory Acquisition
- alloc
- init
- Method Override
- Where’s Abstraction?
- Polymorphism
- The Purpose of Polymorphism
- Polymorphism in Objective-C
- Placing Objects in Collections
- Using NSMutableArray
- Runtime Identification of Objects
- Arrays
- The “Classic” C Array
- Defining the Array
- Processing the Array
- Foundation Framework Arrays
- NSArray
- NSMutableArray
- The “Classic” C Array
- Foundation Framework
- The Foundation Framework
- Strings
- Date/Time
- Numbers
- Collections
- NSString
- Replacing char*
- Initialization
- NSString Methods
- NSNumber and NSNumberFormatter
- Replacing int, float, and more
- Initialization
- NSUInteger and NSInteger
- Formatting
- NSDate and NSDateFormatter
- NSDate
- NSDateFormatter
- The Foundation Framework
- Collections
- Arrays
- NSArray
- NSMutableArray
- Sets
- NSSet
- NSMutableSet
- How Duplicate Elements Are Detected: isEqual and hash
- Dictionaries
- NSDictionary
- NSMutableDictionary
- Arrays
- Memory Considerations
- Memory Management in Objective-C
- Manual Retain-Release
- Automatic Reference Counting
- Garbage Collection
- Strong and Weak
- Release and Retain
- Atomic and Nonatomic
- Automatic Reference Counting
- Memory Management in Objective-C
- Cocoa Framework
- The Purpose of Cocoa
- User Interfaces
- What Is a User Interface?
- View Controllers
- Using Interface Builder to Create User Interfaces
- The XIB File
- IBAction and IBOutlet
- Drag and Drop with the Connections Inspector
- Creating a Simple Mobile Application
- Creating the Project
- Adding Properties and Synthesized Methods
- Building the User Interface
- Testing the Application
To Hire an AMS Objective-C / iOS Developer Subject Matter Expert and Instructor who also teaches this class, call us today at 800-798-3901!