Re: Best strategy to update view controllers in navigation stack after users edit data

2018-04-21 Thread Markus Spoettl
Hi, On 4/20/18 10:15 AM, Glen Huang wrote: I have an app where user can edit data and save to my server. I wonder what’s the best way to update affected view controllers in the navigation stack? To give an example, imagine it’s an a recipe app where users can create recipes and edit other’s

Re: Best strategy to update view controllers in navigation stack after users edit data

2018-04-21 Thread Glen Huang
Thanks for the reply, Ben. > I'd suggest a callback method I thought about this approach, but it has the drawback that child view controller needs to be aware of all other view controllers that it needs to notify, when the hierarchy of view controllers is complex, finding the correct ones