• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

実機で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 Png satoko on Mon 18 May 2009 at 01:28
Contents
[iPhone] UICachedDeviceWhiteColorメモリリーク
Comments
KingofSmack: Here also good reads for this mobile applicatio... '14-5
satoko: stackoverflowでも同じエラーを挙げている人がいたので、1.3でアップロードしたよっ... '10-12
ujihisa: :%s/blog/glob/g '10-7
satoko: しゅが〜様 返事が遅くなって申し訳ありません。また、投稿百景ご購入ありがとうございます。 ... '09-10
しゅが~: こんにちは。投稿百景を発売日翌日から利用しています。本当にいいAppを作っていただきました。罫... '09-10
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ