I have an some MyData
class.
MyData
depends on AppDelegate
. (I have a MyData object in AppDelegate
)
I would like to use MyData
in MainViewController
and for this, I'm ashamed to import AppDelegate
inside MainViewController
. I'm a beginner developer, and not an iOS one.
In MainViewController
, how do I get that MyData
(initialized in AppDelegate
), without importing Appdelegate
?