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

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -