extend a protocol privately using a category in objective c
问题 did some searching and didn't find much, but wondering if it's possible to extend a protocol. Currently, in MyDelegate.h, there is: @protocol MyDelegate <NSObject> hoping to create a private header, MyDelegate+Private.h, to not expose extra optional methods to the client. @protocol MyDelegate (Private) <NSObject> this doesn't seem to work. is it possible? would like to avoid creating a whole new delegate protocol that holds a superset of the current one. 回答1: I don't think you can create a