rptwsthi
rptwsthi

Reputation: 10182

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, How to check if the browser have opened a URL or not?

Upvotes: 0

Views: 135

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96984

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.

Upvotes: 2

Related Questions