开发者

Is there any class for weak References on iPhoneOS ==> none

开发者 https://www.devze.com 2023-01-05 09:25 出处:网络
My APP received a big data that was used about twice times. So, I think It`ll cause a memory problem. In this case I use the WeakReference class on java.

My APP received a big data that was used about twice times. So, I think It`ll cause a memory problem.

In this case I use the WeakReference class on java. But, I couldn`t find any class for weak references like java.

Is there any class for weak refereces on 开发者_JS百科iPhoneOS?

Is this the only way in this case, that using didReceiveMemoryWarning method and release code.

Thx.


iPhoneOS SDK does not support garbage collection so classes that implement weak referencing are not really needed. What I would suggest is that you run your app through Instruments (Choose Run->Run WIth Performance Tools->Allocations from Xcode 3.2.3. This will help you understand the memory usage of your app and detect possible leaks.


I think you should use persistent storage, if you want to play with big data because memory will not allow you beyond its limit.

0

精彩评论

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