Tip on memory managment, objective c
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.
connect:
@property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet;
release:
[anOutlet release], anOutlet = nil;
精彩评论