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

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

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