I'm learning Objective-C, and I have to do one app. What I'm trying to do, is call from my MainViewController
, a SplitViewController
, in code. That's already solved. Now, I have to call multiple DetailViewControllers
. I've found this example:
http://kshitizghimire.com.np/uisplitviewcontroller-multipledetailviews-with-navigation-controller/
In this example, they use MultipleDetailViewsWithNavigatorAppDelegate
to declare SplitViewController
and MasterViewController
, because the SplitViewController
is loaded from the start, in the first ViewController
, and using the didFinishLaunching
function, of the AppDelegate
. In my app, I'm loading the SplitViewController
in the second ViewController
, so my SplitViewController
is declared and loaded in my ViewController
, not in my AppDelegate
. I've read, that "delegates" are like Interfaces
, to declare and implement methods in different way, but here there are not using protocols or delegate methods. So, I have to do other AppDelegate
for my SecondViewController
, and declare in this new AppDelegate
the SplitViewController
and MasterViewController
?... Or is this AppDelegate
variable reference, just to reference to SplitViewController
?