NSURLRequest挂SpringBoard
我有一个 MobileSubstrate 插件,可以挂钩跳板(不是在实际的 Objective C 代码中,而是在 plist 中)。它包含一个 UIWebView,它加载一个 NSURLRequest。这个NSURLRequest在这里:
NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
这个NSURLRequest挂跳板。我做了很多测试,我 100% 确定这个 NSURLRequest 挂起了跳板,而不是 MobileSubstrate Tweak 的任何其他元素。
我等待您的建议和/或解决方案。
更新: 我将尝试线程化页面的加载。如果这不起作用,我会回来报告。
I have a MobileSubstrate addon that hooks springboard (not in the actual objective c code, but with the plist). It contains a UIWebView, which loads a NSURLRequest. This NSURLRequest is here:
NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
This NSURLRequest hangs springboard. I did LOTS of testing, and I am 100% sure that this NSURLRequest hangs springboard, and not any other element of the MobileSubstrate Tweak.
I await your advice and/or solutions.
UPDATE:
I'm going to try threading the loading of the page. If that doesn't work, I'll report back.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是你的代码,它在SpringBoard中使用UIWebView。 SpringBoard 对此反应不佳。与使用 system() 相同。
这是一个已知问题,但目前还没有解决方案。
It's not your code, it's using UIWebView in SpringBoard. SpringBoard somehow doesn't react well to doing that. Same with using system().
It's a known problem, but afaik there has been no solution yet.