UIScrollView not showing scroll indicator

后端 未结 8 1304
借酒劲吻你
借酒劲吻你 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:18

    When I've dealt with this before, in my implementation of a grid, I would occasionally get some cells over the top of the scroll indicator. To fix this I am now inserting subviews at index 0 rather than adding them, which adds them to the top. So try something like this:

    [scrollview insertSubview:subview atIndex:0];

提交回复
热议问题