내 앱에서 누출이 있습니다. 실제로 이해할 수 없지만 누구나 도와 줄 수 있습니까?0x0 메모리 누출 [iphone]
인스트루먼트 스택 트레이스 :
0 libSystem.B.dylib calloc
1 WebCore CurrentThreadContext()
2 WebCore WKSetCurrentGraphicsContext
3 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:letterSpacing:includeEmoji:]
4 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:]
5 UIKit -[UILabel _drawTextInRect:baselineCalculationOnly:]
6 UIKit -[UILabel drawTextInRect:]
7 UIKit -[UILabel drawRect:]
8 UIKit -[UIView(CALayerDelegate) drawLayer:inContext:]
9 QuartzCore -[CALayer drawInContext:]
10 QuartzCore -[CALayer _display]
11 QuartzCore -[CALayer display]
12 QuartzCore CALayerDisplayIfNeeded
13 QuartzCore CA::Context::commit_transaction(CA::Transaction*)
14 QuartzCore CA::Transaction::commit()
15 QuartzCore CA::Transaction::release_thread(void*)
16 libSystem.B.dylib _pthread_tsd_cleanup
17 libSystem.B.dylib _pthread_exit
18 Foundation +[NSThread exit]
19 Foundation __NSThread__main__
20 libSystem.B.dylib _pthread_body
21 TestApp 0x0
메인 스레드가 아니라는 것을 어떻게 나타 냅니까? 내 그림의 대부분은보기 (윌/그랬어) 나타나는 방법에서 이루어집니다. 또는 스레드에서 채워진 UITableViewController. – Thys
예를 들어, NSOperationQueue를 사용하는 경우. 모든 작업은 병렬 스레드에 있습니다. 나는 수술 중에 경보를 발령하려 할 때 기억이 새었다. – Morion