Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting no scrolling Indicator?

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?

like image 557
Souljacker Avatar asked Dec 08 '10 16:12

Souljacker


People also ask

How do I get my scroll bar to show?

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.

How do I hide the scroll bar in Chrome?

Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.

How do I make my page not scrollable?

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.


2 Answers

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.

like image 135
Sam Ritchie Avatar answered Oct 19 '22 23:10

Sam Ritchie


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.

like image 31
Avijit Nagare Avatar answered Oct 19 '22 22:10

Avijit Nagare