"intro to ios development" - derek fernholz, south dakota code camp 2012
DESCRIPTION
"Intro to iOS Development" by Derek Fernholz, given November 10, 2012, at South Dakota Code Camp 2012 in Sioux Falls.TRANSCRIPT
Derek FernholzDeveloper
@fernholz
A COMPREHENSIVE OVERVIEW
Intro to iOS Development
1
WHAT YOU NEED TO GET STARTED
The Necessities
• Mac (in our case, running Mac OS X 10.7 or higher)• XCode 4.5+• iOS SDKs• Familiarity with or willingness to learn Object Oriented
Programming
2
LEARNING TO LOVE [ ]
Language - Objective-C
• The Objective-C language is a simple computer language designed to enable sophisticated object-oriented programming.
• Knowing or having an understanding of C will help you understand this language
• It is a C superset based and built on Smalltalk
3
A ONE-STOP SHOP
The IDE
• (Live Demo / Walkthrough)
4
THE BASICS
Class Structure
• Interface vs. Implementation• Instance vs. Class• Instance Variables, Properties, Setters & Getters, and
Synthesizing
5
YOU’LL GET USED TO IT
Syntax
• NSString *string = [NSString string]• [NSString stringWithFormat:[prefs format]];• return [object name] (same as) return object.name• More as we dive into the code
6
WHY YOU’LL LOVE ARC
Memory Management
• Retain and Release• Alloc and Dealloc• Nil
7
EXTENDING WITHOUT EXTENDING
Categories
• Add methods to a class without subclassing it• Gives ability to override or add functionality to classes blindly
and with ease• @interface NSString (Utilities)• - (BOOL) isURL;• @end
8
STORYBOARDS, XIBS, OR ?
View Layer
• Storyboard• XIBs (NIBs)• IBOutlets• IBActions• (Show the people)
9
WE’LL DO IT LIVE
Lets Code Something
• (Heads to XCode)
10
THE OLD STANDARD FINAL SLIDE
Questions and Contact
• Q&A Session
• @fernholz• [email protected] or [email protected]• World Beer Tour App in iTunes App Store (shameless plug)• https://github.com/fernholz/CodeCamp12
11