开发者

URL can't be opened from the application

开发者 https://www.devze.com 2023-03-20 01:04 出处:网络
In an application, this: http://web.extebtion/projects/projectName/myaccount.php?1310625280.37+TE1PUFha-MDEyMzQ1Njc4OV85X3NpbXVsYXRvcg==+1310625280.37

In an application, this:

http://web.extebtion/projects/projectName/myaccount.php?1310625280.37+TE1PUFha-MDEyMzQ1Njc4OV85X3NpbXVsYXRvcg==+1310625280.37

(TYPE OF) URL is being tried to open by:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithString:http://web.extebtion/projects/projectName/myaccount.php?1310625280.37+TE1PUFha-MDEyMzQ1Njc4OV85X3NpbXVsYXRvcg==+1310625280.37]]];  

line of code, but, this line doesn't open the URL in iPhone browser. But if == is being removed from the URL, all problem get solved.

Now the question is, 开发者_JAVA百科How to check if the browser have opened a URL or not?


I think you might want to just specify the @"<string>", i.e.:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://web.extebtion/projects/projectName/myaccount.php?1310625280.37+TE1PUFha-MDEyMzQ1Njc4OV85X3NpbXVsYXRvcg==+1310625280.37"]];

You'll know the browser opened the URL, because Safari will pop into the foreground and load the URL.

0

精彩评论

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