So I want to create an array that would contain my App’s UNViewControllers. I’m using a navigationcontroller to switch between views. What my overall aim is to use this Array so that I can load the views using this array. My only problem is I don’t have an idea how I would utilise this function. Do I need to create the array in my Projects AppDelegate file so I can apply the Array to all my sub ViewControllers? Any advice would be really helpful. Thanks in advance!
So I want to create an array that would contain my App’s UNViewControllers .
Share
You have a navigation controller right? So you don’t need an array of viewcontrollers, the navigation controller will handle it. Just give each view controller an identifier in interface builder (storyboard) and then use: