UIGraphicsGetCurrentContext () gives a warning about memory!

I call UIGraphicsGetCurrentContext () in -drawRect: of the inherited UIView class. Then the view is added to scrollView. In -scrollViewDidEndZooming: withView: atScale: I run the -setNeedsDisplay view. Therefore, calling UIGraphicsGetCurrentContext () gives a warning about memory.

Please help me with this.

+3
source share
1 answer

didReceiveMemoryWarning does not apply to a single function call. It is called when your application often uses too much memory as a result of a memory leak.

0
source

Source: https://habr.com/ru/post/1760050/


All Articles