简体   繁体   中英

UIScrollView doesn't show scrollers (scroll indicators)

I have UIScrollView which i populate with UIImageViews programmatically. After that I change contentSize of scrollview so I can scroll it. It works fine, but I don't see scrollers and it bothers me. I've set to show them in .xib, and I've even set "showHorizontalScrollIndicator" property programmatically, but I still can't see scrollers.

Does anyone have any idea why I can't see scrollbars and how I can make them appear?

BTW I don't mean I wan't to see them at all times, I just want standard behavior, but they aren't shown even when I'm scrolling.

I was removing subviews and scroll indicators were of them.

I fixed it at first by checking type of subviews I was removing, then I changed the logic and didn't remove subviews at all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM