How to create a category class in Cocoa objective-c

I am creating an iPhone application that needs to add a custom category to extend the uinavigationbar. Can anyone give me some sample code how I could create and implement this category to extend this class?

+2


source to share


2 answers


Customizing existing classes in the Objective-C chapter Programming Guide is the definitive reference.



+10


source


This is what Wikipedia has in the form of categories (with patterns) in Objective-C. This is a pretty helpful tutorial on the subject.



+3


source







All Articles