问题
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