scrollViewTexturedBackgroundColor leak

I was seeing memory issues as well, but in a slightly different capacity with a UIScrollView. It appears that the [UIColor scrollViewTexturedBackgroundColor] property consumes a very significant amount of memory when your UIScrollView subclass, including UIWebView, applies it as the background color.

I would recommend changing it to just a plain color like gray. I noticed a 7 MB reduction in memory as reported by the activity monitor instrument by just making that simple change.

原文地址:https://www.cnblogs.com/chenfulai/p/2162259.html