带有图像序列的 UIImage
我有很多 png 序列,需要循环播放并在 ipad 上显示。
但随后内存不足,最终导致应用程序崩溃。
我尝试跳过每个交替帧以避免内存错误。
我可以通过任何方式管理内存、分配/释放,但我没有看到任何类似于此类内存分配的释放的内容,也没有任何分配。
还有其他有效的内存方法吗?
I have lot of png sequences that I need to loop through and display on the ipad.
but then it goes out of memory eventually crashing the application.
I worked around skipping each alternate frame to avoid memory errors.
Any way that I can manage the memory, allocation/release, I don't see anything like release for this kind of memory allocation, nor there is any alloc.
Any other memory efficient way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以使用这个
iboutlet uiimageview *animationview;
在 .h 文件
和 .m 文件中
you can use this
iboutlet uiimageview *animationview;
in .h file
and in .m file
不,没有办法管理这种动画。如果它对你有用,那就太好了。如果没有,您需要使用其他东西。视频序列或图像视图中手动替换的图像(速度慢,而且还容易出现内存问题),或者 GL 中的某些内容。
Nope, there's no way to manage this kind of animation. If it works for you, great. If it doesn't, you need to use something else for it. A video sequence or a manually-replaced image in an image view (slow, and also prone to memory issues), or something in GL.