150 likes | 163 Views
Learn the basics of Object-Oriented Programming (OOP) for developing applications on Xcode and iPhone. Topics covered include variables, datatypes, control flow, OOP concepts, methods, memory management, symbols, files, and more. Get additional help from iTunes U, Stanford iPhone Application Development course, online resources, and networking opportunities.
E N D
OOP Boot Camp Prep for Xcode and iPhone Development
Variables • Information storage • Should be well named • Case sensitive • “Camel Case”
Variables • Datatypes • BOOL • int • float / double • char • http://www.techotopia.com/index.php/Objective-C_2.0_Data_Types
Variables • Datatypes • Array • Dictionary • String • Enum • Struct • Id • Pointer
Control • If / Then / Else • For Loop • While Loop
OOP • Object – *IS* a thing
OOP • Class – Describes a thing • Holds information • Knows how to do things
OOP • Instance – is a specific thing that has the properties of our Class
Methods • How your object DOES WORK • Should be well named • Parameters • Return value
Methods • - Instance Methods • You need to have an instantiated instance to call this method • (This is used most of the time) • + Class Methods • No instance required • Constructor
Memory • If you allocate it, you need to release it
Symbols • Math: + - * / % • Relation: > < >= <= != == • Assignment: = • Logic: && || !
Files • Interface • Implementation
More help • iTunes U • Stanford iPhone Application Development • First 3 lessons
Connection • Google • Blogs • Twitter • Meetups • Relationships