IBOutlet declarations?

前端 未结 4 1075
忘掉有多难
忘掉有多难 2021-02-14 02:54

I have seen the code below written 3 different ways (with regards to IBOutlet) Does it matter, I would say adding IBOutlet to both the declaration and the @property was more con

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-14 03:23

    I also found this way (without any property declaration):

    @class SwitchViewController;
    
    @interface iPhone_switcherAppDelegate : NSObject  {
        IBOutlet UIWindow *window;
        IBOutlet SwitchViewController *switchViewController;
    }
    
    @end
    

    What about this?

提交回复
热议问题