I am making a tableView
, but I don´t want the scrolling indicator and there seems to be no way to setting for setting the indicator to none. Is any other way to do this?
Click Start > Settings. Under Windows Settings, scroll down, and then click Ease of Access > Display. Scroll down, and then set Automatically hide scroll bars in Windows to Off.
Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.
Disabling scroll with only CSS. There's another way to disable scrolling that is commonly used when opening modals or scrollable floating elements. And it is simply by adding the CSS property overflow: hidden; on the element you want to prevent the scroll.
Yep, just use:
[tableView setShowsHorizontalScrollIndicator:NO];
[tableView setShowsVerticalScrollIndicator:NO];
UITableView
inherits from UIScrollView
, so you get access to the latter's properties, and relevant setters and getters. Here's a link to Apple's Documentation with a bit more info.
For UIScrollView in swift version
scrollView?.showsHorizontalScrollIndicator = false
scrollView?.showsVerticalScrollIndicator = false
As,UITableView inherits form UIScrollView so try for UITableView
self.myTable.showsHorizontalScrollIndicator = false
self.myTable.showsVerticalScrollIndicator = false
Hope this help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With