Objective-C Language Class methods


Example

A class method is called on the class the method belongs to, not an instance of it. This is possible because Objective-C classes are also objects. To denote a method as a class method, change the - to a +:

+ (void)hello {
  NSLog(@"Hello World");
}