ios - write something to already opened view, when coming back from the modal view -
edit in parent view, when moved child modal view. should use "viewwillappear" or other pre-defined functions view appeared in foreground..
there plenty of ways achieve want.
- one checking on
viewwillappear
, - another way create protocol, , call protocol method when child going dismissed.
also, have property in child class hold object reference parent, , when being dismissed call method on parent notify parent modal being dismissed.
you use
notificationcenter
, , post notification, , handle notification on parent update it, well.
i don't know 1 suitable you, if give more context problem, clarify answer. luck!
edit:
here official apple documentation;
here can find information how use notifications , notification center.
you can search google more on notifications , notificationcenter.
Comments
Post a Comment