What are the differences between categories and extensions?



What are the differences between categories and extensions?..

Answer / maanya

Categories: Allows you to add methods on existing classes. 
Extensions: Allows you to increase the functionality (extend) of an existing class without using subclasses

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain ios 7 airdrop?

1 Answers  


What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?

1 Answers  


What is messaging? What is message forwarding?

1 Answers  


What is mvc in ios?

1 Answers  


What are the benefits of ios?

1 Answers  


What is delegate in ios objective c?

1 Answers  


What is 1x 2x?

1 Answers  


When dealing with property declarations, what is the difference between atomic and non-atomic?

1 Answers  


Can my application have multiple models?

1 Answers  


What is nslayoutanchor?

1 Answers  


What is the difference between atomic and nonatomic properties?

1 Answers  


Explain how the push notification works in iOS operating system?

1 Answers   Winsol Solutions,


Categories