【问题标题】:@protocol extends @protocol@protocol 扩展 @protocol
【发布时间】:2010-03-03 18:04:24
【问题描述】:

@protocol 可以扩展@protocol 吗?

@protocol Prot1 : Prot2
@end

就像在java中一样:

public interface Interface1 extends Interface2 {
}

【问题讨论】:

    标签: objective-c protocols


    【解决方案1】:

    是的,但使用语法

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-15
      • 1970-01-01
      • 1970-01-01
      • 2014-11-28
      • 2012-12-15
      相关资源
      最近更新 更多