【发布时间】:2010-06-10 16:43:17
【问题描述】:
现在 4.0 已公开,我可以编辑此问题并再次提问。 此代码适用于 3.2 和任何以前的版本,但在 4.0 中,我收到一个 alertView 说“无法播放这部电影”。
ivar 网络视图
//in viewDidLoad
self.webView = [[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
webView.scalesPageToFit = YES;
webView.delegate = self;
// in tableView didSelectRowAtIndexPath
// url contains a video from web
NSURL *url = [NSURL URLWithString:@"http://www.somevalid.td/validmovie.mp4"];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
在日志中显示“设置电影路径(空)”
【问题讨论】:
-
谁能在他们的机器上测试这个?我提交了一个应用程序,因为它在 3.0 和 3.2 中工作,我认为我是安全的。现在它可能会被 Apple 拒绝
标签: iphone uitableview uiwebview ios4