Objective-C Language Methods


  • - or +: The type of method. Instance or class?

  • (): Where the return type goes. Use void if you don't want to return anything!

  • Next is the name of the method. Use camelCase and make the name easy to remember an understand.

  • If your method needs parameters, now is the time! The first parameter come right after the name of the function like this :(type)parameterName. All the other parameters are done this way parameterLabel:(type)parameterName

  • What does your method do? Put it all here, in the curly braces {}!