LoginSignup
1
1

More than 5 years have passed since last update.

UITableViewで底辺(Bottom)から描画を開始する方法

Last updated at Posted at 2017-08-17

やりたいこと

UITableViewにおいて上辺ではなく、底辺から描画を開始する方法

解決法

[tableView setContentOffset:CGPointMake(0, CGFLOAT_MAX)];

(追記)
iOS9の場合、CGFLOAT_MAX だとTableViewのヘッダのレイアウトが崩れてしまうバグがあるようです。。
以下のように十分に大きな数値を指定すれば問題ないようです。。
[tableView setContentOffset:CGPointMake(0, 10000000)]

参考文献

1
1
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
1
1