开发者

Tip on memory managment, objective c

开发者 https://www.devze.com 2023-02-28 03:12 出处:网络
i\'ve an application with many view of graphic data (many labels, some images ecc), all these data is static, created in Interface builder and not connected to code because i don\'t need开发者_如何学P

i've an application with many view of graphic data (many labels, some images ecc), all these data is static, created in Interface builder and not connected to code because i don't need开发者_如何学Python them.

I've seen that changing view the memory value increases, but the doesn't the system remove these type of objects itself?

thanks


No, it would be better if you connect them (IBOutlet) to your code and release them in your dealloc and viewDidUnload method.

  1. connect:

    @property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet;
    
  2. release:

    [anOutlet release], anOutlet = nil;
    
0

精彩评论

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