LoginSignup
0
0

More than 5 years have passed since last update.

TableViewでTop/Bottomに移動させる (Swift3.0)

Posted at

Purpose

Personal Note

Development Environment

  • OS X El Captain 10.11.2
  • Xcode Version 8.0

Language

Swift 3.0

Source Code

Top
self.tableView.contentOffset = CGPoint(x: 0, y: -(self.tableView.contentInset.top))
Bottom
self.tableView.contentOffset = CGPoint(x: 0, y: self.tableView.contentSize.height - self.tableView.frame.size.height)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0