I have UIScrollview with dynamic views(Label, Imageview) inside it. I hide some views but white blank space is there. how can I remove it?
I tried with
Just hiding views won't help, as it still will take place. You have several options: 1. Each of views inside scrollView should have height constraint that should be set to 0 when hiding is required. Then you should call
[scrollView setNeedsLayout];
[scrollView layoutIfNeeded];
[viewToHide removeFromSuperview];