Andrei  Trotsko Andrei Trotsko - 1 year ago 68
iOS Question

UITableView height change when scrolling with animation

I took ViewController which have 2 uitableView. How to use the method

scrollViewDidloadScroll:(UIScrollView *)scrollView
to do stretches to the Top Layout Guide?
Project on Objectiv C.

enter image description here

Answer Source

We can do it using tags. Need assign tag to tableview object,

-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
//Need to give tag value to table view
if(scrollView.tag == 100){
    //table1
}else if(scrollView.tag == 100){
    //table2
}}

Hope this will hep you