Search code examples
iosobjective-cobjective-c-category

Why we need to use category in IOS?


I have just starting developing application in ios and i have read so many tutorial for that but still i have not satisfy from that tutorial. i want to know theoretical why we need to use category and what are the benefits.


Solution

  • A category allows you to add methods to an existing class—even to one for which you do not have the source. Categories are a powerful feature that allows you to extend the functionality of existing classes without subclassing

    How to use category in obj video