Objective-C语言基本协议定义

示例

定义新协议:

@protocol NewProtocol

- (void)protocolMethod:(id)argument;

- (id)anotherMethod;

@end