- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序中有一个 UIPageViewController,用作不同 UICollectionViewControllers 的容器。每个 UICollectionViewController 代表一个新闻源,用户可以添加和理想地从 UIPageViewController 中删除,并在不同的新闻源之间滑动。为了添加新闻源,用户点击 + 按钮,从新加载的 View 中选择一个主题,当返回时,UIPageViewController 加载所有 View 并按预期呈现。到现在为止还挺好。我现在想要实现的是,当用户点击垃圾桶按钮时,当前可见 View 将从 UIPageViewController 中删除,并且只剩下剩余的 View ,同时仍在 UIPageViewController 上。
我完成这项工作的唯一方法是通过按下垃圾桶按钮从 ViewControllers 数组中删除相应的 ViewController,加载新 View ,然后返回 UIPageViewController。
所以基本问题是:如何从 UIPageViewController 中删除 ViewController 并在 UIPageViewController View 上重新加载 UIPageViewController?
非常感谢任何帮助。
最佳答案
如评论中所述,请参阅 UIPageViewController navigates to wrong page with Scroll transition style
以正确的方式设置 viewController。
关于ios - 如何从包含许多页面的 UIPageViewController 中删除一个页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21756116/
我在 StackOverflow 和其他地方看到了很多与此类似的问题,但没有一个直接解决我的问题。我正在 THREE.js 中使用凸包生成器生成 n 边多面体。我想将方形纹理映射到每个多面体的每个面上
我是一名优秀的程序员,十分优秀!