Kiyoung Moon
Thursday, August 16, 2012
UIView에서 NSTimer를 쓸 때 Dealloc이 되지 않는 현상
그 이유는 NSTimer를 사용할 때 내부적으로 UIView의 레퍼런스 카운터를 올려주고 UIView가 SuperView에서 Remove되더라도 이때 레퍼런스 카운터가 0이 되지 않으므로 Dealloc되지 않는다.
해결 방법
SuperView에서 Remove해주기 전에 Timer역시 Invalidate해주어야 한다.
끝.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Task in UnrealEngine
https://www.youtube.com/watch?v=1lBadANnJaw
Unity : FPS Microgame Analysis -1-
Unity released very good FPS example for people and I decided to analysis how they make this. Personally I wanted to show you how I analys...
Use Ue4's DrawDebugSphere in AnimNode
When we use DrawDebugSphere function for debugging, it is working well but when you are trying to use it in anim node's function it will...
간단한 코드는 테스트하고 싶고 컴파일러는 없을 때 (혹은 띄우기 귀찮을 때)
http://codepad.org 바로 코드를 테스트 해볼 수 있다.
No comments:
Post a Comment