Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
quick question on passing data between scenes
Post Body

So, I have a pretty basic app, you enter a text field on one scene, and it shows up as a label on another. seems pretty easy right? well I'm having a really annoying error (which is probably easily fixable). Essentially, when i try to assign the text from the text field to the label, the label reference shows up null. even though it is hooked up correctly in the IB.

heres a code snippet: - (IBAction)updateEditor:(id)sender { NSLog(@"%@", ((ConfirmationViewController*)self.presentingViewController).priceLabel.text); ((ConfirmationViewController *)self.presentingViewController).priceLabel.text=self.pPrice.text; ((ConfirmationViewController *)self.presentingViewController).detailText.text=self.pDetails.text; NSLog(@"%@",self.pPrice.text); }

the first log says "Null" the second says whatever i type in. but when i go to the label on the scene that it should be displayed, the log says "Label" as it should. any pointers?

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,169
Link Karma
4,152
Comment Karma
4,857
Profile updated: 3 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago