Ios UIWebView在不同设备上的奇怪行为

Ios UIWebView在不同设备上的奇怪行为,ios,memory,uiwebview,Ios,Memory,Uiwebview,我开发了一个示例iPad应用程序,其中我在UIWebView中打开了一个ppt类型的文件。当我在O.S版本5.0(iPad2)和4.3.1(iPad1)的iPad上运行此应用程序时,该应用程序会崩溃,并出现以下错误(内存警告): Apr 11:01:23未知WebViewTest[345]:收到内存警告。 Apr 11 11:01:24未知UserEventAgent[12]:jetsam:正在创建内核终止快照 4月11日11:01:24未知的com.apple.launchd[1]:(UIKi

我开发了一个示例iPad应用程序,其中我在UIWebView中打开了一个ppt类型的文件。当我在O.S版本5.0(iPad2)和4.3.1(iPad1)的iPad上运行此应用程序时,该应用程序会崩溃,并出现以下错误(内存警告):

Apr 11:01:23未知WebViewTest[345]:收到内存警告。
Apr 11 11:01:24未知UserEventAgent[12]:jetsam:正在创建内核终止快照
4月11日11:01:24未知的com.apple.launchd[1]:(UIKitApplication:com.apple.Preferences[0x3072])退出:终止:9
Apr 11 11:01:24未知的com.apple.launchd[1]:(UIKitApplication:com.extentia.DMG[0x6ba7])退出:已终止:9
Apr 11 11:01:24未知跳板[15]:应用程序“设置”异常退出,信号9:Killed:9
Apr 11 11:01:24未知跳板[15]:应用程序“DMG”异常退出,信号9:Killed:9
Apr 11 11:01:25未知报告崩溃[347]:已将崩溃报告保存到/Library/Logs/CrashReporter/LowMemory-2012-04-11-110125.plist,使用uid:0 gid:0,synthetic\u euid:0 egid:0
Apr 11 11:01:25未知WebViewTest[345]:收到内存警告。
Apr 11 11:01:26未知跳板[15]:收到内存警告。
4月11日11:01:26未知的com.apple.launchd[1]:(UIKitApplication:com.extentia.WebViewTest[0x99f4])退出:终止:9
Apr 11 11:01:26未知UserEventAgent[12]:jetsam:正在创建内核终止快照
Apr 11 11:01:26未知跳板[15]:应用程序“WebViewTest”异常退出,信号9:Killed:9
Apr 11 11:01:35未知报告崩溃[348]:已将崩溃报告保存到/Library/Logs/CrashReporter/LowMemory-2012-04-11-110135.plist,使用uid:0 gid:0,synthetic\u euid:0 egid:0

但当我在装有O.S版本4.3.3(iPad2)的iPad上运行相同的应用程序时,它运行得非常完美。这种奇怪行为背后的原因是什么?有什么解决办法吗。提前感谢。

您的应用程序正在崩溃,因为内存不足。
尝试使用PDF格式或PPS(power point幻灯片放映)格式。这可能占用较少的空间。

这是一个真正的设备。模拟器没问题。是的,我知道它的内存问题。但同样的文件会在应用商店中的应用程序中打开,这是专门为打开ppt文件而设计的。当加载PDF文件时,整个文件不会加载到内存中,只加载所需的页面。可能是他们以同样的方式处理PPT,以减少内存足迹。正如您所说,这是一个专用的应用程序,可能是他们正在手动处理文件,而不是将其加载到webview中。
Apr 11 11:01:23 unknown WebViewTest[345] <Warning>: Received memory warning.
Apr 11 11:01:24 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 11 11:01:24 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.Preferences[0x3072]) Exited: Killed: 9
Apr 11 11:01:24 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.extentia.DMG[0x6ba7]) Exited: Killed: 9
Apr 11 11:01:24 unknown SpringBoard[15] <Warning>: Application 'Settings' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:24 unknown SpringBoard[15] <Warning>: Application 'DMG' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:25 unknown ReportCrash[347] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-11-110125.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Apr 11 11:01:25 unknown WebViewTest[345] <Warning>: Received memory warning.
Apr 11 11:01:26 unknown SpringBoard[15] <Warning>: Received memory warning.
Apr 11 11:01:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.extentia.WebViewTest[0x99f4]) Exited: Killed: 9
Apr 11 11:01:26 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 11 11:01:26 unknown SpringBoard[15] <Warning>: Application 'WebViewTest' exited abnormally with signal 9: Killed: 9
Apr 11 11:01:35 unknown ReportCrash[348] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-04-11-110135.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0