I’m learning Objective C to program on iOS.
I know it has something to do with pointers, which I fail to understand.
I don’t know what’s the difference of creating a string (or any NSObject) like this:
NSString place = ...;
or
NSString *place = ...;
Thanks for the help!!
NSString is a class and as such instances of the class declared as
NSString *strmust always be declared as a pointer (since object instances can only be accessed via a pointer to the objects structure). Therefore this declaration is illegal:NSString str