I am new to Objective-C, and I canโt understand what is the difference between declaring variables (firstString, secondString and thirdString) in MyClass.h:
@interface MyClass { NSString *firstString; } @end
in MyClass.m:
@interface MyClass() { NSString *secondString; } @end @implementation MyClass NSString *thirdString; @end
I suppose the first and second case are the same thing, but in which case is it better to use?
Thanks a lot!
source share