开发者

Full image OR 1px pattern?

开发者 https://www.devze.com 2022-12-08 01:02 出处:网络
in my iPhone app I would to create a ThemeManager in order to skin the view. I am wondering what is the best way to limit memory use.

in my iPhone app I would to create a ThemeManager in order to skin the view. I am wondering what is the best way to limit memory use.

开发者_JAVA百科

I would like to fill a view with a background. Should I load a 1px pattern and draw it into the view or should I load the complete image ?

Thanks for you comments.

Thierry


A 1px pattern sounds like you could use a plain color. But anyway, when you're optimizing:

  1. measure
  2. optimize
  3. measure

instead of just optimize.

0

精彩评论

暂无评论...
验证码 换一张
取 消