Objective-C Language Methods

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • - 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 {}!



Got any Objective-C Language Question?