iphone - UILabel memory leak? -


I have an NSTimer that closes every other, and on that second, I set the text property to a Update UILB:

remainglbl.text = [NSString stringWithFormat: @ "% i:% 02i", var1, var2];

It works fine, but when I run it in the xcode with the Exploration tool -> Leak, it seems that the memory just climbs and climbs and climbs.

In my opinion, the string should be autoraxed (though I never see less memory, or stops growing).

Is this a memory leak? Is there a better way to do this to keep my memory usage in check?

Thank you!

Update: The code to create a timer is as follows:

  timeTimer = [NSTimer scheduled timer with time interval: 1.0 target: auto selector: @selector (changeTime) UserInfo: zero repeats: yes];  

The code for cleaning the timer finish is as follows:

  [timetimer invalid]; [Time timer release]; Time timer = zero;  

Anything wrong with this? I thought the memory can be freed once the timer is over, but it is not.

I believe the problem was that I did not understand the display tool. Running with Activity Monitor does not show increased memory usage


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -