ios - property scope in TabBarController -



ios - property scope in TabBarController -

i having tabbarcontroller tabs , b. have nsmutablearray property defined in tab b below:

.h file:

@property (nonatomic,strong) nsmutablearray *cart;

i updating property in .m file of same tab(tab b).

now, question is: when nail button on either of these tabs , move previous view, property go out of scope , values in property reset/the property gets assigned nil? if case there way preserve property , prevent form getting assigned nil when navigated to previous view via button?

appreciate inputs , thoughts.

thanks, mike

ios objective-c properties uitabbarcontroller

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -