Passing a variable that can be updated
Posted
by Rob Bonner
on Stack Overflow
See other posts from Stack Overflow
or by Rob Bonner
Published on 2010-06-17T17:00:36Z
Indexed on
2010/06/17
17:03 UTC
Read the original article
Hit count: 151
iphone
This seems like a simple thing, but can't get it to work.
I pass a variable into a UIViewController thourgh a standard property:
[aViewController setProposedDate:proposedWorkLog.entryDate];
which is retained by the controller, and possible changed. I have verified that in the controller, the data is modified.
But, after it is popped off the stack and I look in the calling view, the data has not been updated. Is there a way to pass this variable and have it retain the new value, or a way to pass back a response from a closing view controller?
Thanks!
© Stack Overflow or respective owner