Now I'm working with CWPopup category (https://github.com/cezarywojcik/CWPopup) and I've got a problem with layout: I created a tableView within a popup view, call this popup view from my mainView, expected result is popupView.height = navigationBar.height + tableView.height ( tableView.height is dynamic ), but it doesn't work as expected. Now it looks like that:
and
I've tried auto-layout and auto-resizing mask but it didn't help. Any body can show me a better solution?
Height of the tableview won't change dynamically. you can use the number of rows and height of the cell to calculate frame height and set it explicitly.