0

I have a main ViewController and a button to view a popover view controller which has two buttons enter image description here

the functions for the two buttons are on the main view controller, how can I pass the functions to the popover view?

I have a button which will open the popover view

Jacob
  • 121
  • 1
  • 8
  • Please refer to this link... The solution is here. https://stackoverflow.com/questions/19343519/pass-data-back-to-previous-viewcontroller – Kishan Barmawala Feb 01 '21 at 09:17

1 Answers1

0

Just move the functions in the pop over view controller, and make a protocol for popover view controller, and make mainViewController conform to that protocol to perform functionality there.

Amais Sheikh
  • 421
  • 5
  • 12