How can I call a method from a different class? Say I have a view controller that displays a string with its own class called ViewController1. I also have another class called ViewController2.
I want ViewController2 to be able to update the string from ViewController1 with a string value from ViewController2
How can I do this? I have looked at singleton and delegation patterns but they dont see to achieve what I am trying to do. I want regularly update a class with a string from a different class? Any help would be appreciated