Objective-C Language Categories

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 Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • @interface ClassName (categoryName) // ClassName is the class to be extended

  • // Method and property declarations

  • @end

Remarks

To avoid method name clashes, it is recommended to use prefixes (like xyz_ in the example). If methods with the same name exist, it is undefined which one will be used in the runtime.



Got any Objective-C Language Question?