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!

this link help!


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -