用分页动画刷新UIView
我有一个 UIView,它具有基于日期构建的控件。 我想轻弹更改日期并使用分页动画之类的动画刷新 UIView。 那可能吗? 我不想创建 UIView 的多个副本,因为它已经接近超出内存。 我的 UIView 的 2 个副本肯定会让手机崩溃。 有人有什么建议吗? 请告诉我。
I have a UIView that has controls built based off a date. I want to flick to change the date and refresh the UIView with an animation like the paging animation. Is that possible? I do not want to create multiple copies of my UIView because it is already close to exceeding memory. 2 copies of my UIView would definitely crash the phone. Does anybody have any suggestions? Please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然我还没有测试它,但您应该能够使用相同的 UIView 实例来生成“翻转”或使用相同的 UIView 作为底层视图和覆盖视图的任何动画。
我偶然发现了这个问题,试图让一些动画正常工作。
Although I haven't tested it, you should be able to use the same instance of the UIView that would generate a 'flip' or whatever animation using the same UIView as the underlying view and the overlying view.
I've stumbled into this accidentally, trying to get some animations working.