Posted By

gerhardsletten on 10/18/09


Tagged


Versions (?)

Class vs Instance Methods


 / Published in: Objective C
 

  1. @interface MyClass : NSObject
  2. + (void)aClassMethod;
  3. - (void)anInstanceMethod;
  4. @end
  5.  
  6. [MyClass aClassMethod];
  7. MyClass *object = [[MyClass alloc] init];
  8. [object anInstanceMethod];

Report this snippet  

You need to login to post a comment.