Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
Introduce to iOS
Rafael Sperling at ilegra
Documentation is your
God!
Class Methods
Class Methods (+)
Called: [UIView
areAnimationsEnabled];
Class Methods
Methods that do not require object initialized
• Declaration

•

To using

with +
Instance Methods (-)
Called: [[UIView alloc]
initWithFrame:frame];
Instance Methods
Methods that require object initialized
• Declaration

•

To using

with -
Java

Objective-C

Declaration:

Declaration:

void myMethod(void) {...}

-(void)myMethod {...}

To call:

To call:

myMet...
Controller
object

Ref:
https://developer.apple.com/library/mac/documentation/general/conceptual/devpedia-cocoacore/Contro...
Lifecycle of View
Thank you!

Rafael Sperling at ilegra
Prochain SlideShare
Chargement dans…5
×

Lightning Talk - Introduce to iOS 7

Lightning talk to introduce iOS 7 in your life.

  • Identifiez-vous pour voir les commentaires

  • Soyez le premier à aimer ceci

Lightning Talk - Introduce to iOS 7

  1. 1. Introduce to iOS Rafael Sperling at ilegra
  2. 2. Documentation is your God!
  3. 3. Class Methods
  4. 4. Class Methods (+) Called: [UIView areAnimationsEnabled];
  5. 5. Class Methods Methods that do not require object initialized • Declaration • To using with +
  6. 6. Instance Methods (-) Called: [[UIView alloc] initWithFrame:frame];
  7. 7. Instance Methods Methods that require object initialized • Declaration • To using with -
  8. 8. Java Objective-C Declaration: Declaration: void myMethod(void) {...} -(void)myMethod {...} To call: To call: myMethod(); [self myMethod]; Declaration: Declaration: void myMethod (int x) {...} -(void)myMethod:(int)x {...} To call: To call: myMethod(4); [self myMethod:4]; Declaration: void sqrt (int base, int exp{...} To call: sqrt(4,5); Declaration: -(void)sqrt:(int)base expNumber:(int)exp {...} To call: [self sqrt:4 exp:5]; Declaration: Declaration: int sqrt (int base, int exp) { return ...; } -(int) sqrt:(int)base expNumber:(int)exp { return ...; } To call: To call: int z = sqrt(4,5); int z = [self base:4 expNumber:5];
  9. 9. Controller object Ref: https://developer.apple.com/library/mac/documentation/general/conceptual/devpedia-cocoacore/ControllerObject.html#//apple_ref/doc/uid/TP40008195-CH11-SW1
  10. 10. Lifecycle of View
  11. 11. Thank you! Rafael Sperling at ilegra

×