开发者

Is it normal for memory warnings to disappear?

开发者 https://www.devze.com 2022-12-13 15:51 出处:网络
I\'ve had lots of problems getting a simple UIImagePicker working (see my other posts), and I\'ve been getting memory warning notifications after taking a picture and before I even get a chance to dis

I've had lots of problems getting a simple UIImagePicker working (see my other posts), and I've been getting memory warning notifications after taking a picture and before I even get a chance to dismiss the UIImagePicker

Now, however... I've loaded up my app in Xcode today and all is working fine. Can't get the memory warning at all, under the same build settings etc.

My ques开发者_JS百科tion is.. is this normal? Perhaps it was cleared by an iPhone restart, or XCode restart. Or should I be worried that I've still got a hidden memory warning, only now it's hiding from me?

Thanks!


yes, very normal. memory is used by lots of background tasks on the phone, so it really depends what your email client is doing, whether you're installing apps in the background, and lots more.


It also depends a lot on the device you're testing on too. For example, if you're testing on an iPhone 2G, you'll have a significantly lower amount of memory to play with than if you were testing on a 3GS for example.

Depending on what kind of requirements your app has, and what choices you're making in terms of what to target (3.0 only? 3G upwards, etc) its best to always test on the least capable device so that you can get an accurate idea of how the app will perform on that device.

0

精彩评论

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

关注公众号