Use the prepareForSegue:sender: method to pass data from the source to destination view controller.
Up vote 1 down vote favorite share g+ share fb share tw.
In the app I'm creating, one of the features is that users can submit their own quotes to be displayed in the app. There is one storyboard segue that lets the user enter their name, email and website, and then on the next they type in a quote and the app then posts all of this data to a database. I'm not sure how I can easily pass data from the first storyboard segue to the next, so that it can post all of the information to the database in one go.
Thanks in advance for any replies. Objective-c ios data storyboard link|improve this question edited Dec 22 '11 at 0:24Andrey Z.1,471515 asked Dec 21 '11 at 22:06Carl Goldsmith916.
Use the prepareForSegue:sender: method to pass data from the source to destination view controller: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if (segue. Identifier isEqualToString:...) { MyViewController *controller = (MyViewController *)segue. DestinationViewController; controller.
MyProperty1 = ...; controller. MyProperty2 = ...; } }.
Thank you very much! – Carl Goldsmith Dec 21 '11 at 23:57 1 Should be accepted answer... – ing0 Feb 17 at 1:21.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.