I am working on adding some functionality to an app that is very similar to the app switching drawer on Springboard on iOS. I want to be able to have a button that I can hit that will animate the y-coordinates of the view up so that another view is exposed at the bottom. Like I said, very similar to the home button double-tap feature on iOS.
After doing some looking around, it appears that I need to wrap both of the sub view controllers into one parent view controller.
How can I go about doing this? The existing view controller is pretty complicated so I am having a hard time figuring out where to start.
I don’t know that you need to use a parent view controller to do this. This code worked for me to do what I think you want. I have one BOOL ivar to keep track of whether the bottom view has been revealed, and use the same button in the main view to toggle between the two states.
I usually do use container view controllers to do this kind of thing, but this works, and is very simple.