我在 iPad 应用程序中工作,使用 Xcode 4.3.2 开发我的应用程序,我从 Web 服务获取 pdf 文件(URL),并在 NSDocumentDirectory 路径中下载 pdf 文件,然后从 NSDocument 目录路径中检索 pdf 文件以显示在
NSString *pathlink = (NSDocument Directory Path)
NSURL *pdfUrl = [NSURL fileURLWithPath:pathlink];
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfUrl);
CFRelease(pdfUrl);
Below this classes for Curl page animation:
LeavesCache.h
LeavesView.h
LeavesViewController.h
Utilities.h
然后每个页面都打开 curl 动画并在我的 ipad 模拟器中运行,并且工作正常。然后我尝试在我的 iPod 设备中运行这个应用程序,设备版本是 ios6.1,所以我在 iTunes 连接中插入 ipa 文件来运行它。当我点击打开pdf文件时应用程序崩溃了,我尽力了,但我不知道,请帮助我。
感谢提前
错误:
Ipad ReportCrash[7011] <Notice>: Formulating crash report for process PublishGenieApplication[7008]
Ipad com.apple.launchd[1] (UIKitApplication:com.everestindia.apps[0x7e28][7008]) <Warning>: (UIKitApplication:com.everestindia.apps[0x7e28]) Job appears to have crashed: Segmentation fault: 11
Ipad backboardd[26] <Warning>: Application 'UIKitApplication:com.everestindia.apps[0x7e28]' exited abnormally with signal 11: Segmentation fault: 11
Ipad ReportCrash[7011] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Ipad ReportCrash[7011] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/genieapplication_2013-02-16-131259_Ipad.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0