NSURLRequest挂在SpringBoard上 [英] NSURLRequest hanging SpringBoard

查看:65
本文介绍了NSURLRequest挂在SpringBoard上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个钩住跳板的MobileSubstrate插件(不是在实际的目标C代码中,而是带有plist).它包含一个UIWebView,该UIWebView加载一个NSURLRequest.此NSURLRequest在这里:

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];

此NSURLRequest挂起跳板.我做了很多测试,并且100%确信此NSURLRequest可以挂在跳板上,而不是MobileSubstrate Tweak的任何其他元素.

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.

推荐答案

这不是您的代码,而是在SpringBoard中使用UIWebView. SpringBoard对此反应不佳.与使用system()相同. 这是一个已知的问题,但是afaik尚未解决.

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.

这篇关于NSURLRequest挂在SpringBoard上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆