objective c - Global NSString -
i need create nsstring, can set value in 1 class , in another. how can it?
if write:
nsstring *globalstring = @"somestring";
anywhere outside method, class definition, function, etc... able referenced anywhere. (it global!)
the file accesses declare external
extern nsstring *globalstring;
this declaration signifies being accessed file.
Comments
Post a Comment