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.
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?
Subreddit
Post Details
- Posted
- 11 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/iOSProgramm...