Class variable defined at @implementation rather than @interface?

后端 未结 6 2065
夕颜
夕颜 2020-11-29 02:46

I\'m new to Objective-C, but I am curious about something that I haven\'t really seen addressed anywhere else.

Could anyone tell me what is the difference between a

6条回答
  •  迷失自我
    2020-11-29 03:19

    Just to be clear, never ever ever declare an IBOutlet as a global var (in the implementation) if you are using it for localized nibs/xibs.

    I spent a few hours figuring why the outlet is connectable only in one of the localized nibs at any given time.

    Thanks for this question and the answers!

提交回复
热议问题