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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -