Monday, 19 August 2013

How can I access UITextFields from outside the ViewController (from a .m file)?

How can I access UITextFields from outside the ViewController (from a .m
file)?

I have a class where I keep utility methods; one of those methods takes
the values in some textboxes stored in a ViewController and saves those
values to a plist.
The problem is the utility methods class is not a ViewController and
therefore I can't "hook up" the outlet properties of the textboxes tothe
Utility class.
Is there a way I can pass the ViewController as a parameter to the Utility
class method?

No comments:

Post a Comment