How organize accessing to properties MyAppDelegate object for MyClass (ex: MyViewController). Can i directory get its from MyAppDelegate or i should pass it to init method as argument or other?
How organize accessing to properties MyAppDelegate object for MyClass (ex: MyViewController). Can i directory
Share
It depends on what you want to do… Passing objects that are usefull for other classes is a good idea. But if you really want to access one of your AppDelegate property, define (for convenience) :
Then access your property like this :