objective c - Passing an object between view controllers, does the object become null in new controller? -
i new objective c , trying head around oop in apps opposed web oop.
lets have class theday.h , theday.m
setday class in 1 view controller takes in value, integer, via set method, , in view controller using method can value example: (if syntax wrong sorry, new!)
[theday setday:1]; then it:
int day; day = [theday getday]; is correct , object available throughout views?
yes object available! passing reference object, not object!! have allocate object somewhere in code!
Comments
Post a Comment