Home Features Docs Blog Support GitHub

Handling "Received memory warning" on iOS


(Guilherme Campos Hazan) #1

Hi,

I’m receiving this message on iOS. Is it possible to intercept it from MOE and then do some memory cleanup?

On a standard app you would implement:

didReceiveMemoryWarning

thanks

guich


(Roland Vigh - Migeran) #2

Hi!

Please, read this:

Best Regards,
Roland


(Guilherme Campos Hazan) #3

Hi Roland,

I followed the link and read everything for some hours.

I tried to copy the GCUtil to my project but then i realized that the alloc method is native and will not be found.

I need to intercept the didReceiveMemoryWarning method to do some memory cleanups on my side.

If the GCUtil.didReceiveMemoryWarning was at least protected, i could override it.

Can this be done?

thanks

guich