gaius
Uploaded by
15 SLIDES
287 VUES
150LIKES

Objective-C Fundamentals for iPhone Development: Variables, OOP, and Methods

DESCRIPTION

This boot camp prep guide focuses on essential Objective-C concepts for iPhone development, including the importance of variable declaration, data types such as BOOL, int, float, and arrays. It covers the fundamentals of object-oriented programming (OOP) like classes, instances, methods, and constructors. The guide emphasizes naming conventions, the significance of case sensitivity, and how to manage memory. With practical examples of control structures like if-else, for loops, and while loops, developers will gain foundational knowledge crucial for building iOS applications.

1 / 15

Télécharger la présentation

Objective-C Fundamentals for iPhone Development: Variables, OOP, and Methods

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript

Playing audio...

  1. OOP Boot Camp Prep for Xcode and iPhone Development

  2. Variables • Information storage • Should be well named • Case sensitive • “Camel Case”

  3. Variables • Datatypes • BOOL • int • float / double • char • http://www.techotopia.com/index.php/Objective-C_2.0_Data_Types

  4. Variables • Datatypes • Array • Dictionary • String • Enum • Struct • Id • Pointer

  5. Control • If / Then / Else • For Loop • While Loop

  6. OOP • Object – *IS* a thing

  7. OOP • Class – Describes a thing • Holds information • Knows how to do things

  8. OOP • Instance – is a specific thing that has the properties of our Class

  9. Methods • How your object DOES WORK • Should be well named • Parameters • Return value

  10. 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

  11. Memory • If you allocate it, you need to release it

  12. Symbols • Math: + - * / % • Relation: > < >= <= != == • Assignment: = • Logic: && || !

  13. Files • Interface • Implementation

  14. More help • iTunes U • Stanford iPhone Application Development • First 3 lessons

  15. Connection • Google • Blogs • Twitter • Meetups • Relationships

More Related