Search code examples
iphoneiosuiimageviewmultiview

Sharing data on MultiView app


I have question here, i design multiview application using view base template. Page 1 I place UIImageview and page 2 I place photo selector. What ever select on page 2 will display on UIImageView on page 1.

my idea is send the info which photo was selected to page 1 but how to let page 1 update this info to UIIMageView. Using timer? or any good way? I can't put this at ViewDidLoad right?

Thanks for all advice.


Solution

  • Make use of delegates.

    So while coming back to page-1, you inform the page-2's delegate (page-1) that so and so image was selected.