Pregunta de entrevista de Raintek Solution

What is a category and when is it used?

Respuesta de la entrevista

Anónimo

16 jun 2017

A category is a way of adding additional methods to a class without extending it. It is often used to add a collection of related methods. A common use case is to add additional methods to built in classes in the Cocoa frameworks. For example adding async download methods to the UIImage class.