Let’s say I have a view controller called vc1, which a synthesized property called property1, and i wants to access it from another view controller (vc2) and change it from vc2.
Now the methods created by the @syntisize to change and get properties are instance methods, so how can I get to them fro another view controller (do view controllers have instances in the app, and if so, what are they?)
Just to be clear I am using storyboards, so I never really instantiate the view controllers…
VC1.m:
VC2.m
Make sure to import your
YOURViewControllerin your other view .m fileSomething like that should work.
Or if you’re having problems, try this tutorial here:
Tutorial on How-To Pass Data Between Two View Controllers
Hope this helps 🙂