Hey All,
so I'm having a hell of a time with Auto Layout. I have an iPad app and within it, I have a parent view controller which has two embed views on it. I have the children views all setup and working and wanted to have a button which could hide the smaller view and have the larger view expand to take up the extra space. I have that part working, but what I'm having trouble with is that the larger view controller has a table view in it, which normally sits at the bottom of the view. When the embed view grows to take up the extra space (it moves up on the screen), the table view also moves up.
I cannot for the life of me, figure out how to get the table to stay at the bottom of the view. I've been playing with the constraints and none of the changes I make works.
For hiding the views, I get their current frames and then set new frames for when they're hidden/shown and animate those in an animation block. I'm wondering if maybe that has something to do with it? If so though, what's the best way to hide the views?
I made a sample app of what I'm dealing with, to easily show what's up. It's attached as a zip.
Any ideas?
so I'm having a hell of a time with Auto Layout. I have an iPad app and within it, I have a parent view controller which has two embed views on it. I have the children views all setup and working and wanted to have a button which could hide the smaller view and have the larger view expand to take up the extra space. I have that part working, but what I'm having trouble with is that the larger view controller has a table view in it, which normally sits at the bottom of the view. When the embed view grows to take up the extra space (it moves up on the screen), the table view also moves up.
I cannot for the life of me, figure out how to get the table to stay at the bottom of the view. I've been playing with the constraints and none of the changes I make works.
For hiding the views, I get their current frames and then set new frames for when they're hidden/shown and animate those in an animation block. I'm wondering if maybe that has something to do with it? If so though, what's the best way to hide the views?
I made a sample app of what I'm dealing with, to easily show what's up. It's attached as a zip.
Any ideas?