So i ran into a weird problem when working with array that inside a method, if i went to print the contents of a array by going
NSLog("Number of items:%@ , _array.count)
I would get 0 but calling
NSLog("Number of items:%@, self.array.count)
I would get the correct number. The array would have been declared at the top, using @property and I would have stored items into the array earlier in the method before calling NSLog. I've always understood that "self" is the same as "_", am i wrong, are there minor details that I am missing.
Thanks
edit----------------------
the line of code was
[_currentSelectedRoutes setObject:newMapRoute forKey:route.shortName]
and the code was set for lazy instantiation