Showing posts with label objective-c. Show all posts
Showing posts with label objective-c. Show all posts

Sunday, 2 June 2013

iOS: share methods between classes

Two classes can shared methods through category. For example, you have two subclasses of UIViewController. You want to add some common methods to both, then you can create a UIViewController category which contains these common methods.