关于在iPhone OS设备上管理内存的黑色艺术:不同级别的内存警告意味着什么.1级?2级?拨号盘是11吗?
背景:经过大量的内存压力测试期 - 包括在播放iPod音乐播放器应用程序时运行我的iPad应用程序,我倾向于忽略我收到的随机但不常见的内存警告.我的应用程序永远不会崩溃.永远.我的应用程序是无泄漏的.而且,mems警告似乎并不重要.
谢谢,
道格
这让我很烦恼很久了.我的应用程序运行占用大约2.74MB的内存.没关系.但是当它创建一个UIWebView时,它上升到大约5.87MB并且继续崩溃.这些是在我的第一代iPad上运行时在Live Bytes in Instruments下给出的值.
我找不到崩溃日志.以下内容来自控制台:
MyApp[1205] <Warning>: Received memory warning. Level=1
MyApp[1205] <Warning>: applicationDidReceiveMemoryWarning
SpringBoard[30] <Warning>: Received memory warning. Level=1
MobileMail[1199] <Warning>: Received memory warning. Level=1
configd[26] <Notice>: jetsam: kernel memory event (95), free: 428, active: 1853, inactive: 1011, purgeable: 338, wired: 15122
configd[26] <Notice>: jetsam: kernel termination snapshot being created
com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x8966]) Exited: Killed: 9
com.apple.launchd[1] <Notice>: (UIKitApplication:com.MyApp.MyApp[0xdd4f]) Exited: Killed: 9
SpringBoard[30] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed: 9
kernel[0] <Debug>: launchd[1207] Builtin profile: MobileMail …Run Code Online (Sandbox Code Playgroud)