I have 2 views in my storyboard: a view, then a popup view. What i want to happen is when the user finishes filling out the information on the popup, and pressed the close, for the original view controller to detect if the popup was dismissed. I hope this makes sense! Thanks!
Asked
Active
Viewed 273 times
0
-
You need to implement a delegate in popup view to pass data to original view controller, you can find more information about how implement delegates [here](https://medium.com/compileswift/implementing-delegates-in-swift-step-by-step-d3211cbac3ef#.906jkllrt) – DiegoQ Mar 12 '17 at 00:23
-
Its in objective-c, not swift – Mar 12 '17 at 00:28
-
Your question's title and body don't really match. If your actual goal is more like your title then see http://stackoverflow.com/questions/5210535/passing-data-between-view-controllers?rq=1 – rmaddy Mar 12 '17 at 00:31
-
I fixed it. Sorry for the mix up. – Mar 12 '17 at 00:38
-
Don't detect that the popup was dismissed. Detect that your model changed. – danh Mar 12 '17 at 01:35
-
I dont understand, Im really new to programing – Mar 12 '17 at 02:15
-
Your question is way too vague and general, forcing us to _guess_ what you are doing in order to answer, which is ridiculous. Stack Overflow is about actual programming. Show, and provide context for, _the actual code_ by which (1) the popup view is made to appear, and (2) the close button responds. – matt Mar 12 '17 at 02:21