Please can any one tell me whats the difference between declaring a variable inside { } vs outside of @interface & @end in header file. Both ways lead to successful compilation.
Please can any one tell me whats the difference between declaring a variable inside
Share
if you want the variable to be part of the class (a.k.a. instance variable) then you declare it inside the brackets, otherwise it is declared as a global variable which has nothing to do with the class.
e.g.
…
edit: forgot {}