A category is used to add methods to an existing class. The added methods are usually inherited by subclass and are difficult to differentiate from the original methods at runtime. Categories are used to distribute the implementation of their classes into separate source files.

#import “SystemClass.h”
@interface SystemClass (CategoryName)
    // method declarations


Suggest An Answer

No suggestions Available!