0

I have a similar question to the following question:

Remove Gray UITableView Index Bar

I'd like to do the same thing, but I would like the scroll bar to show up again when there are enough entries to require scrolling.

Community
  • 1
  • 1
salfasano
  • 277
  • 2
  • 11

1 Answers1

0

You can use this code:

if (tableView.contentSize.height < tableView.frame.size.height) {
  self.tableView.showsVerticalScrollIndicator = NO;
}
else {
  self.tableView.showsVerticalScrollIndicator = YES;
}

after modifying your tableView data (e.g. after calling reloadData).

See this question

Community
  • 1
  • 1
Javier Chávarri
  • 1,605
  • 11
  • 21