Allow the TableView to scroll extra

Introduction

When creating a UI that overlays a button on top of a TableView, reserve an extra scroll area to prevent it from remaining on the button even if you scroll to the bottom.

code

Reserve 100 extra areas at the bottom

tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 100, right: 0)

I was allowed to reference

About UIScrollView content offsets and content insets http://u16suzu.hatenablog.com/entry/2015/04/01/195309

Recommended Posts

Allow the TableView to scroll extra
I want to return the scroll position of UITableView!
9 Corresponds to the return value
12 Corresponds to the while statement
4 Add println to the interpreter
The basics of Swift's TableView
Input to the Java console