What does < > mean / represent in a class interface?

后端 未结 4 998
盖世英雄少女心
盖世英雄少女心 2021-01-23 04:08

I am sure I have read this somewhere, Can anyone tell me what the < > represent in the following interface?

@interface GameFinder : NSObject 

        
4条回答
  •  清歌不尽
    2021-01-23 04:36

    < > represent a protocol (or list of protocols) to which a class conforms. An Objective-C protocol is like an interface in Java: it's a list of methods that the conforming class must implement.

提交回复
热议问题