@protocol 扩展 @protocol

11

@protocol能够扩展@protocol吗?

@protocol Prot1 : Prot2
@end

就像在Java中一样:

public interface Interface1 extends Interface2 {
}
1个回答

25

可以,但需要使用以下语法

@protocol Prot1 <Prot2, Prot3, Prot4> 
@end

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接