图像选择器显示多个图像,如拼贴没有内存问题 [英] Image-picker display multiple images like collage without memory issue

查看:168
本文介绍了图像选择器显示多个图像,如拼贴没有内存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此

Imagepicker对我而言是新的。我不知道如何实现这一目标。我已阅读了很多帖子,但没有明确了解如何在我的案例中实施。

Imagepicker is new for me. I don't know how to achieve this. I've read many posts but not getting clear idea how to implement in my case.

我正在演示项目,

func doneButtonDidPress(_ imagePicker: ImagePickerController, images: [UIImage]) {

    imagePicker.dismiss(animated: true, completion: nil)
    imageArray = images
    createCollage()
}

func createCollage() {

}

如果我使用UIimageView显示/加载图像,则会显示大量的内存使用情况。

If I use UIimageView to display/load images it shows massive memory usage.

任何人都可以帮助我解决这些问题吗?任何帮助将不胜感激!!

Can please anyone help me here with any of these issue? Any help will be much appreciated!!

推荐答案

在真实设备上测试相同的代码,它工作正常。就我而言,在模拟器上进行测试会导致大量内存使用问题。

Tested the same code on real device and it is working fine. In my case, testing on simulator was causing massive memory usage issue here.

这篇关于图像选择器显示多个图像,如拼贴没有内存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆