Tutorial by Topics: categories

@interface ClassName (categoryName) // ClassName is the class to be extended // Method and property declarations @end 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...
Categories can be used to override methods of a class. Even if the method is actually private. The overridden method cannot be accessed from the category or anywhere else. So it's important to make sure when adding methods to an existing class, that those methods don't exist already.

Page 1 of 1