How to reload MasterView Controller TableView from DetailViewController

55 views Asked by At

In detail view controller I have formlist. after fill that form I'm storing into array after Save Button click then I'm passing that array into MasterView and Showing Count Of Forms.

1

There are 1 answers

0
Tariq On

You should take a look on design patterns. In your above case delegation would be preferred. Notification is another option but it should be used for broadcasting a message.

objects receiving notifications can react only after the event has occurred. This is a significant difference from delegation. The delegate is given a chance to reject or modify the operation proposed by the delegating object. Observing objects, on the other hand, cannot directly affect an impending operation

You can read more about on design pattern and viewcontroller interaction:

How do I set up a simple delegate to communicate between two view controllers? http://www.informit.com/articles/article.aspx?p=2091958 http://blog.shinetech.com/2011/06/14/delegation-notification-and-observation/