开发者

NSURLRequest hanging SpringBoard

开发者 https://www.devze.com 2023-03-25 08:20 出处:网络
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:

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 loadReq开发者_Python百科uest: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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消