How do you add a category in objective c?



How do you add a category in objective c?..

Answer / Reena Singh

"To add a category in Objective-C, you can use the '@category' directive followed by the name of your category and the class it is being added to. For example: '@interface UIView (MyCategory) ... @end'"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Explain when to use nsarray and nsmutablearray. Which one is faster and threadsafe?

1 Answers  


Is objective-c is used in window also?

1 Answers  


How would I make a static strategy?

1 Answers  


What is difference between mutable and immutable?

1 Answers  


Which class is used to establish a connection between applications to the web server?

1 Answers  


What are the 5 principles of object oriented programming?

1 Answers  


What are the rules of variable?

1 Answers  


What is super in objective c?

1 Answers  


Is swift faster than objective c?

1 Answers  


When will you use nsarray and nsmutablearray? Which one is faster?

1 Answers  


How do I create an objective c class in xcode?

1 Answers  


Can we implement dealloc in arc? If yes, what is the need to do that?

1 Answers  


Categories