How to always visible scroller of Tableview in Obj c?

前端 未结 6 926
春和景丽
春和景丽 2020-12-19 02:55

I want to show user there is a more content below but UITableView only shows scroll indicator when we scroll the tableview. There is any way, so I can show scroll indicator

6条回答
  •  甜味超标
    2020-12-19 03:30

    -(void)viewDidAppear:(BOOL)animated{
    
     timer = [NSTimer scheduledTimerWithTimeInterval:0.8 target:self selector:@selector(indicator:) userInfo:nil repeats:YES];
    
    }
    
    -(void)viewDidDisappear:(BOOL)animated{
           [timer invalidate];
    }
    
    -(void)indicator:(BOOL)animated{
          [tableViewer flashScrollIndicators];
        NSLog(@"asda");
    }
    

    Just blink the scrollbar

提交回复
热议问题