Andrei  Trotsko
Andrei Trotsko

Reputation: 347

UITableView height change when scrolling with animation

I took UIViewController which have 2 UITableView.
How to use the method scrollViewDidloadScroll:(UIScrollView *)scrollView to do stretches to the Top Layout Guide?
Project on Objective C.

enter image description here

Upvotes: 2

Views: 361

Answers (1)

Bhargav Narkedamilli
Bhargav Narkedamilli

Reputation: 86

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 == 101){
    //table2
}}

Hope this will hep you

Upvotes: 1

Related Questions