UIScrollView not showing scroll indicator

后端 未结 8 1319
借酒劲吻你
借酒劲吻你 2020-12-24 12:40

I have a UIScrollView which I create and size dynamically using...

scrollView.contentSize = CGSizeMake(scrollView.frame.size.width , length);
相关标签:
8条回答
  • 2020-12-24 13:22

    I fix this by adding this code after add new subview:

    self.showsVerticalScrollIndicator = NO;
    self.showsVerticalScrollIndicator = YES;
    
    0 讨论(0)
  • 2020-12-24 13:23

    For me, the horizontal indicator had mysteriously disappeared in my app on iOS 7. Later found out that for some strange reason, I had to enable both Shows Horizontal Indicator and Shows Vertical Indicator to make the horizontal one show up. If I set it to not show the vertical indicator, it would also not show horizontal indicator.

    enter image description here

    0 讨论(0)
提交回复
热议问题