What do you mean by category and when to use it?
Answer / Shalini Gupta
In Objective-C, a category is a way to add new methods or properties to an existing class without modifying its original source code. This is useful when you want to extend the functionality of an existing class without affecting its original implementation. For example, you can create a category for UIView and add custom drawing methods to it.
| Is This Answer Correct ? | 0 Yes | 0 No |
What objective-c program consists of?
Can you please explain the way messaging works in objective-c?
What is difference between array and nsarray?
What is the difference between #import and #include in objective-c?
What are the advantages of using objective-c?
Is objective c hard?
What is ivar objective c?
What is synthesized in objective-c?
What is a dispatch method?
What are blocks and how are they used?
Is c and objective c the same?
What is a protocol in objective c?