view - Pass Data Through Navigation Controller With Back Button -


example: master detail application text view in detail controller. best way pass text view data master view when user presses button?

you can create @propertyin masterview , pass data when leaving detailview.

basically, can have @property in masterview:

@property (strong, nonatomic) uitextview *textview;

and, instance, if using storyboard go back.

[self performseguewithidentifier:@"masterview"...]

create instance of masterview

masterview *master = [[masterview alloc] init];

and pass textviewfrom detailviewto @propertycreated in masterview.

master.textview = detailtextview;


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -