[英]NSPlaceholderString Memory Leak with ARC
目前我用ARC開發了一個iOS應用程序。 該應用程序是一個帶有兩個TableViewControllers的故事板應用程序。
問題是,在下列情況下,儀器顯示內存泄漏:
啟動應用程序 - > MainViewController加載 - >按Home鍵 - >出現本地通知 - > App開始使用本地通知 - > AppDelegate獲取導航控制器 - > MainViewController中的調用函數加載2 .View Controller - > 2.顯示View Controller,用戶點擊“Back”。
此時儀器顯示內存泄漏:
Leaked Object | # | Address | Size | Responsible Library | ResponsibleFrame
__NSCFString | 1 | 0xe40dd30 | 32 Bytes | Foundation | -[NSPlaceholderString initWithFormat:locale:arguments:]
當我查看堆棧跟蹤時,我看不到任何自己的功能。
我在編程中是否犯了錯誤,或者這是Apple Framework中的錯誤。
怎么能避免這個問題?
我收到了NSPlaceholderString的這種泄漏。 但是你可以忽略它,因為Apple Framework只泄漏了32個字節。
要檢查任何不平衡的保留/釋放,請運行
Product
> Analyze
( shift + ⌘ + B )。
如果沒有返回任何東西,可能你無能為力。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.