I wonder what is the right way to get some message back from a child's view.
I have an item that has been edited in the child's view. I want to see the table in their modifications.
However, I do not know a clean way to do this (I do not like a singleton here).
Is it possible to notice that when a child disappears from sight and gets some information on it?
You can issue a notice (NSNotificationCenter) for parents to be subscribed - its The advantage in favor is that other classes can also be notified.
But if this is a very strict relationship, where only the sub-view and master tables will be noticed, you should probably set your table view controller as a representative of the subview and sub-view Call the representative directly (as mentioned in a protocol, it is a good idea for something like this).
Comments
Post a Comment