I have a base View Controller with various containers inside it. I use them to control the current step on a process, and only one of them is visible at a time. I created a enum for the steps, and use it's Int rawValue to access the containers corresponding to each step by tag, changing its visibility.
But at some points I have to pass some information to one or more of the step controllers. I was thinking using the same enum approach to access the position of the corresponding View Controller in the childViewControllers array to do that.
Problem is, I haven't found anything in the documentation that ensures me that the childViewControllers array is always at the same order, so I can use this approach.
Does anyone knows it or have a better way achieve something similar?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)