問(wèn)題描述
在我的應(yīng)用程序中,我有一個(gè)滾動(dòng)視圖和四個(gè)表格視圖.每次拖動(dòng)然后釋放,我都會(huì)得到一個(gè) 48 字節(jié)的泄漏.這真的加起來(lái)了.如您所見(jiàn),兩組泄漏具有相同的來(lái)源.有沒(méi)有人見(jiàn)過(guò)這樣的泄漏?
In my app I have a scroll view and four table views. Each time one is dragged and then released, I get a 48 byte leak. This really adds up. As you can see, both groups of leaks have the same source. Has anyone seen a leak like this before?
當(dāng)我單擊泄漏旁邊的箭頭時(shí),我會(huì)得到有關(guān)泄漏的以下信息:
When I click on the arrow next to the leak, I get this information for the leak:
推薦答案
您看到的是 iOS 5.1 中的一個(gè)已知錯(cuò)誤,并且正在 iOS 開(kāi)發(fā)者論壇中進(jìn)行討論.您可以通過(guò)在論壇中搜索strdup"來(lái)找到相關(guān)主題.請(qǐng)參閱標(biāo)題為Elements App Memory Leak"的主題.搜索來(lái)自 Apple 員工的帖子.
What you are seeing is a known bug in iOS 5.1 and is being discussed in the iOS Developer Forums as such. You can find the relevant thread by searching in the forums for "strdup". See the thread titled "Elements App Memory Leak". Search for the post from an Apple employee.
這篇關(guān)于每次釋放 UIScrollView 時(shí)內(nèi)存泄漏的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!