Many leaks showing in Instruments caused by Array and Dictionary

和自甴很熟 提交于 2020-01-25 19:00:27

问题


I was testing my app using Instruments checking for any leaks and to my surprise it's showing many leaks caused mainly by:

_ContiguousArrayStorage<String>
_ContiguousArrayStorage<Int>
_ContiguousArrayStorage<NSLayoutConstraint>

_NativeDictionaryStorageOwner<Int, CGFloat>
_NativeDictionaryStorageOwner<String, AnyObject>

The tests are done on an iPhone 5s, iPhone 6s and iPad Pro. All of the devices are running iOS 10.


What can I do about these leaks?

来源:https://stackoverflow.com/questions/40392362/many-leaks-showing-in-instruments-caused-by-array-and-dictionary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!