What are the differences between categories and extensions?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different ways that you can specify the layout of elements in a uiview?

642


What is a difference between stack and heap memory?

517


What is the difference between synchronous & asynchronous task in ios?

488


What do you mean by rest?

574


How we can execute some code when app is in background?

549


Explain the difference between copy and retain?

720


Explain the difference between viewdidload and viewdidappear?

597


Explain what is storyboard?

542


Explain the features is ios 6?

617


What is ios closure?

551


Can we adjust the size of photos uploaded from the app?

565


What is race condition in ios?

582


What is cocoa touch framework in ios?

631


What is core data stack?

578


What is reuse identifier?

557