I stuck in a problem, checked out many answers for a few days. My problem is when i choose profile>Leaks in Xcode, i see UILabel(CALayer) is always getting bigger in Live Bytes. Is it normal or is it a leak? what can i do about it? It is getting bigger when i change class and back to class which has these labels. Its like they are allocating over and over again but not release old ones.
i set my labels in h. file like that
@property(weak,nonatomic)IBOutlet UILabel *lblNumbersSpelling1;
@property(weak,nonatomic)IBOutlet UILabel *lblNumbersSpelling2;
@property(weak,nonatomic)IBOutlet UILabel *lblNumbersSpelling3;
@property(weak,nonatomic)IBOutlet UILabel *lblNumbersSpelling4;
and ,
- (void)viewDidUnload
{
[super viewDidUnload];
self.lblNumbersSpelling1=nil;
self.lblNumbersSpelling2=nil;
self.lblNumbersSpelling3=nil;
self.lblNumbersSpelling4=nil;
self.lblRecordSayfasiNot=nil;
// Release any retained subviews of the main view.
}
i did that and i m not sure if it is necessary what i did in viewDidUnload method. I use Xcode 5. Thanks in advance.