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...
Wrapping angle
Because nature of rotation angle, when we interpolate angles we could have some problems. For instance we have angle A0 and A1. A0 is -...
Git 간편 안내서 -링크-
http://rogerdudler.github.com/git-guide/index.ko.html
No comments:
Post a Comment