This question already has an answer here:
- Can a category implement a protocol in Objective C? 1 answer
- Making class conform to protocol with category for existing methods 2 answers
I'm trying to implement a category for a UIViewController and I want to be certain that the object conforms to a certain protocol. Something like this:
#import <UIKit/UIKit.h>
@interface UIViewController<MyProtocol> (Category)
@end
Is this possible?