Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Value passing problem from once class to another
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Nethfel" data-source="post: 1290942" data-attributes="member: 89124"><p>Ok, I must be missing something because I'm tired, but I see where you instantiate the SUbTable object, but I don't see where you're actually pushing it onto the navigation stack to become visible.</p><p></p><p>My guess is (and it's just a guess), and I can't verify this because I don't see where you're pushing it on - you're re-instantiating it (probably inside of rootViewController?) and pushing it on and that new instance you're not setting the timevalue ivar for that new instance (since multiple instances of a single class won't share instance variables, instance variables are unique for each instance of a class)...</p></blockquote><p></p>
[QUOTE="Nethfel, post: 1290942, member: 89124"] Ok, I must be missing something because I'm tired, but I see where you instantiate the SUbTable object, but I don't see where you're actually pushing it onto the navigation stack to become visible. My guess is (and it's just a guess), and I can't verify this because I don't see where you're pushing it on - you're re-instantiating it (probably inside of rootViewController?) and pushing it on and that new instance you're not setting the timevalue ivar for that new instance (since multiple instances of a single class won't share instance variables, instance variables are unique for each instance of a class)... [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Value passing problem from once class to another
Top