Category: Programming

  • Objective-C – What are Categories?

    Categories in Objective-C are used for adding extra functionality to a class without accessing the source code of the class and without subclassing it. Let us see this with an example by adding an additional method to NSNumber that just writes the value of the NSNumber argument to NSLog. Create Project Create a new Command…