when and where to put @class declarations

后端 未结 2 1069
南方客
南方客 2021-01-19 11:57

I am working on a project with several custom classes. I have a CardModel (NSObject) that has some integer properties to hold data, and a Deck (NS

2条回答
  •  一个人的身影
    2021-01-19 12:23

    The @class directive is used when you need a header to know about a class but you don't want to import the class's header file; e.g., when you need to avoid circular dependencies.

提交回复
热议问题