ios - Global Variables in Objective C++ -
all,
i have numerous arrays in top of .m file :
@interface viewcontroller () @property nsarray *alllogos; @property nsarray *allcontent; @property nsarray *allpostode; @property nsarray *allname; @property nsarray *alladdress; @property nsarray *alladdress2; @property nsarray *alllat; @property nsarray *alllong; @property nsarray *alllocationsid; @property nsarray *alllocationscity;
i need these global arrays, methods can see these. have forgot how make sure these nsarrays can seen in methods in .m file. need because methods update these arrays , tableviews , pickerviews need use them .count etc.
if want access following arrays in class don't make property in .m class.declaration in .m if want make private.
@interface viewcontroller : uiviewcontroller @property nsarray *alllogos; @property nsarray *allcontent; @property nsarray *allpostode; @property nsarray *allname; @property nsarray *alladdress; @property nsarray *alladdress2; @property nsarray *alllat; @property nsarray *alllong; @property nsarray *alllocationsid; @property nsarray *alllocationscity;
Comments
Post a Comment