我的应用程序在模拟器上运行良好,但在设备上却没有。基本上,来自网络的任何文档(PDF、Word、M4P 视频)在模拟器上都运行良好(并且可以从 iPhone 上的 Safari 访问)。但是,在 iPhone 上运行时,它们不显示任何内容。这是一些示例代码:
// Set up the URL
documentViewController.documentUrl = [NSURL URLWithString:[NSString stringWithFormat:mobileContentUrl]];
// mobileContentUrl is something like: http://www.myserver.com/pathitem/Video.mp4" and can be accessed from Safari
[self.navigationController pushViewController:documentViewController animated:YES];
在 documentViewController 我有:
- (void)viewDidLoad {
[super viewDidLoad];
[webView loadRequest:[NSURLRequest requestWithURL:documentUrl]];
}
正如我所说,在模拟器中就像一个魅力......什么可能导致这不能在 iPhone 上工作?我该如何调试问题???