1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UIScrollViewの初期位置がずれる

Posted at

動的にScrollViewの内容を追加したりするとスクロール位置がずれる場合がある。
その場合、内容追加後に UIScrollView の ResetPosition() を呼び出すことでスクロール位置を先頭にリセットすることができる。

UIScrollView

Reset Position controls where the scroll view ends up when its position is reset programmatically. This value is relative to the width and height of the content. The starting value (0, 0) means top left corner. If you wanted a centered reset point, you would specify (0.5, 0.5).

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?