Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我点击一个按钮时,是否可以在 iPad 中让视图向左或向右移动,而不是在视图上实际滑动。
当我在搜索屏幕后的屏幕中时可以在 iPad 上看到这一点,我安装了一个应用程序,屏幕自行向左移动,应用程序位于正确的位置并开始安装。
任何建议都会有所帮助。
主屏幕实际上是UIScrollView启用了分页的。scrollRectToVisible因此,如果安装了新应用程序,它只会移动到下一页(带有)。所以如果你想要这样的东西,我想你必须实现一个 paging UIScrollView。只需搜索它,您就会发现很多很好的教程。
UIScrollView
scrollRectToVisible
一些进一步的资源:
UIScrollView参考文件
分页UIScrollView教程