mluton / EmbeddedSwapping

Demonstration of how to make a custom container view controller manage multiple child view controllers using storyboards.
MIT License
208 stars 30 forks source link

Three ViewController With one Button #10

Closed FabioDev84 closed 9 years ago

FabioDev84 commented 9 years ago

Hello ... I also need to work with three viewcontroller instead of two, but the difference for me is that I do not need three buttons to run the following but using a single button ... Could you help me understand how I can add the third ViewController not change the function of your original button?

mluton commented 9 years ago

In this case I would suggest using a property in the main view controller to keep track of which embedded view controller should be "next". The actual method of embedding the view controllers and the storyboard concepts remain the same. It's just a matter of taking the logic of three different IBAction methods and distilling it down into one.

FabioDev84 commented 9 years ago

Hello Michael and thank you for your kind reply ... you are very kind! I wanted to ask if you could give me the opportunity to understand better perhaps with a few practical examples or tutorials indication of where I can actually see what you're talking about .. I'm sorry but I'm new to iOS and I wanted to better understand your answer :)