@class May I know the proper use of this

前端 未结 3 831
余生分开走
余生分开走 2021-01-07 11:34

Anyone can point out a documentation or a detailed discussion using @class. I\'ve been using this but haven\'t really fully understood it. I want to learn more about it and

3条回答
  •  耶瑟儿~
    2021-01-07 11:59

    @class is used as a forward declaration typically in .h files. What it does is it says that a class named ClassName actually exists without having to import and read the ClassName.h file since it, mot probably, will be imported by the .m file

提交回复
热议问题