开发者

URL can't be opened from the application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜