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 @property
in 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 textview
from detailview
to @property
created in masterview
.
master.textview = detailtextview;
Comments
Post a Comment