I am a new programmer and I am learning swift myself. I was programming an app that has to manage a lot of images. I am using Photo.image = UIImage(named: "something")
, but I think I am having memory issues because every time I switch between pages memory usage jumps with 30MB. The peak total memory usage is about 150MB. First: Is this normal and should I be worried about this?
I am suspecting that unused objects that are created are not cleared (or released). I went through some material, but I could not find anything helpful. Can someone tell me how to manage memory by myself? Or should I use something other than UIImage?
Here is an snapshot from memory leaks analysis tool: