Question: what is the difference between category and subclass in ios?
Answer: Categories : Categories provide the ability to add functionality to an object without subclassing or changing the actual object. ... Subclasses : Every object you create in your Cocoa application descends from the 'NSObject' foundation class. The NSObject class identifies properties and methods which apply to all objects.