if you write:
NSString *globalString = @"someString";
anywhere outside a method, class definition, function, etc., it will be able to refer anywhere. (it's global!)
A file that accesses it will declare it as external
extern NSString *globalString;
This declaration means that it is being accessed from another file.
source
share