What is the difference between @class and #import

后端 未结 8 1731
再見小時候
再見小時候 2020-12-05 03:56

When I compile with the following code there are no errors:

@class RootViewController;
//#import \"RootViewController.h\"

When I compile wi

8条回答
  •  无人及你
    2020-12-05 04:01

    you must have imported the this class in the class to which you want to import here. That is why you are getting error , but it can be rectify by @class example .

提交回复
热议问题