//协议总是顶层的:嵌套靠命名来模仿@interface Button : NSObject@end@implementation Button@end@protocol ButtonStyle@end@interface ImageButton : NSObject <ButtonStyle>@end@implementation ImageButton@end