Photos app-like gap between pages in UIScrollView with pagingEnabled

后端 未结 8 1171
北恋
北恋 2020-12-04 08:52

UIScrollView in paging mode assumes the pages are located right next to each other, with no gap. However if you open a photo in the Photos app and swipe through photos, you

8条回答
  •  被撕碎了的回忆
    2020-12-04 09:17

    This is just a hunch, so apologies if completely wrong, but is it possible that the contentSize is just set to slightly wider than the screen width.

    The correct information is then rendered within the view to the screen width and UIScrollView takes care of the rest ?

提交回复
热议问题