When I declare an NSString
I simply do:
NSString * my_string; (in interface of my .h)
If I want to allow access to this string from other classes I add a property in this way
property (nonatomic, strong) NSString *my_string;
and I write the synthesize
synthesize my_string; (in .m)
Now I have some question about:
- If I use a property, must I also use the simple declaration in interface?
- If I use
my_string
as a property, must I always useself.
before? - If I use a property, is it necessary to write
@synthesize
for each? (because I saw that sometimes it's not necessary.