Categories and Private Methods in Objective-C
In an Objective-C class it is possible to declare instance variables with different levels of visibility. For public variables, any class or function that has a pointer to the object can access the content. Private ivars, however, are available only to the class itself. Objective-C also provides protected instance variables, which can be read or…