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
Post a Comment