I wonder does it make any differences? If its declared in our m file, is it allocated again(thus comsuming extra and redundant memory) each time we uses or both ways mean the same thing and so doesnt make any different which file I declared it?
Share
The only difference is the scope of the variable. A variable declared in the header file would be available to all methods within the class. A variable declared within a method is only accessible within that method.
As far as memory goes, in general there is no difference between having your variable declared in the header file or in the .m file.