Shrink UITableView to accommodate another small UIView

I have a UITableView inside of a UIViewController. I want to shrink the length of the table view dynamically in the code so that when I click on a row, a view slide down from below and covers a small part of the view form bottom.

Using core animation I am able to slide a UIView from below on top of the table view but I want to resize the table view so that the new UIView that slides from below does not obscure any of the rows in the table view.

I tried changing the height of the frame of the table view but its not working.

Any ideas what am I missing here or what are the common ways to do it?

Thanks

Answers


Simply setting the correct frame on your table view should work :-)


Need Your Help

how i do create find similar excel?

c# winforms find search-engine

i want create search in form similar EXCEL , find and put (row) in listview

Web App: To use login of <major web site with api> instead of a native one: Too risky?

oauth openid clr

My plan for this web app is that it needs the user to log in with LinkedIn, and the user's id on the site and database is their LinkedIn id.