Memory increase problem?


hello,

in loop check condition , format string , set string on label,so here memory increase.
code:
  nsstring* str=@"";  		for(int j=0; j<512; j++)  		{  			str=[nsstring stringwithformat:@"current loop value%d",j];  [_test_label setstringvalue:str];  		}  
is there other method format string set on label without increasing memory.

in advance.
 

we've been here before you. code not real world. please, stop wasting our time on such non-sense.

btw, no.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Mac OS X Server as File Server for 50/50 Mac & PC Workgroup

Permissions Problem?

iPhone won't sync with iTunes