Class methods
suggest changeA 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");
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents