Resize UIView over UITableView

I want to create a layout similar to the default Weather app in iOS. My controller has a UIView on top and a UITableView below it. I want to resize the dynamic view from above while viewing the scroll table. I made a delegate to the table view view manager, so I can resize the top view as long as scrollViewDidScroll(scrollView: UIScrollView) is called.

The problem is that I want to disable scrolling of the table view when resizing the top view. Any ideas? Or maybe my approach to this scheme is wrong, and should I use another one?

+5
source share
1 answer

I also ran into the same problem as my problem, I used UIView as the title of the table view and used AutoLayout in my view and if you want to disable scrolling of your table view you can just use the block to complete your size and you can disable table scrolling until your block completes execution. Hope this solution will be helpful for you.

+1
source

Source: https://habr.com/ru/post/1210895/


All Articles