Search code examples
objective-cxcodecocoa-touchobjective-c-category

How to create a category in Xcode 7.2?


How do I create a category to an existing Cocoa Touch Class for objective-c in Xcode 7.2? I've been looking for an hour but couldn't find anything helpful.


Solution

    1. File > New > File…
    2. iOS > Source
    3. Objective-C File
    4. Next
    5. File Type: Category

    Example:

    creating a category file