実機でLeaksを使ってメモりリークのテストをしていたのですが、どうもUICachedDeviceWhiteColorが倒せない...という状況になってしまい、ぐぐってみたら下記にあたりました:
Topic : [iPhone] UICachedDeviceWhiteColor showing as memory leak in Leaks
I had similar problem. After lots of trial-and-error I figured out that "Info Light" button - which was added using IB - on my navigation bar's right bar button item caused this.
So I removed "Info Light" button from XIB and create it programmatically, and then the UICachedDeviceWhiteColor is finally disappeared.
http://discussions.apple.com/thread.jspa?messageID=9368037&tstart=0
これによると、XIBを使って"Info Light"を配置していると、このリークが発生するということで、対応としてXIBから削除、code中から配置するようにしたら、リークが解消されたということでした。
私のXIBではRound Rect Buttonを"Add Contact"タイプにして配置しており、それが原因だったようです。
posted by
satoko on Mon 18 May 2009 at 01:28 with 0 comments