Methods such as + stringWithString: or + array are simply handy methods that always return objects with auto-implementation. They are mainly used to reduce the amount of code written for frequently created classes such as strings, arrays, dictionaries, numbers, etc. They strictly follow the basic rules of memory management, from which is deduced what I mentioned above.
Steven degutis
source
share