matteogobbi / MGSpotyViewController

Beautiful viewController with a tableView and amazing effects like a viewController in the Spotify app.
MIT License
1.02k stars 106 forks source link

Received memory warning #1

Closed ziode closed 10 years ago

ziode commented 10 years ago

good job !!

but we get some error about (Received memory warning ) :(

matteogobbi commented 10 years ago

Really?! I will go to check in a bit. What iPhone are you using?

ziode commented 10 years ago

yea , when swap image more one time , i get error : (

i test it on iphone4 and mini ipad ....

matteogobbi commented 10 years ago

Wow. It is not the same here. Anyway I will check in a bit.

matteogobbi commented 10 years ago

Sorry but I think it depends from something else on your code. There aren't allocation problem as you can see in the image:

screen shot 2014-07-22 at 11 06 21 pm

Also, the code doesn't make strange allocations and the blur image is renderized by the Apple class.

indesignlatam commented 10 years ago

Same here when scrolling many times in iphone 5 get the same error, and if in iphone 4 2 scrolls trigger this error.

The problem is somewhere in the blur code, when swiping down and dont letting the image blur the memory doesn't increase but if scrolling many times and letting the blur effect appear the memory increases to large.

EralpB commented 10 years ago

I am experiencing this after I change the image after initialization :/

Hmmm my image was 640_640 and I solved it by downscaling the image to 300_300. I didn't think that would be a problem, since the example image was 640*640 as well, I wonder what I am missing.