Is it possible to have a class change something on a View Controller without doing [ViewController alloc]init]
?
I have a separate class calculating several things and I need to change the scrollView.contentInset
on my ViewController
as well as some other things.
Edit for a better explanation: My ViewController
contains a scroll view with a text field at the bottom. When the user taps in that text field, I need to change the contentInset
property of scrollView
. I want to manage this all using a separate class (instead of having to do this in all of my View Controllers) so I need to be able to call scrollView.contentInset
on the ViewController
that is currently in view.