Question

I have to open a URL in safari... and after doing some work on safari I have to close the safari...

my code is as below.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:strPageUrl]];

Actually I have to share video on myspace.. if user has shared the video then I have to close safari and need to activate my application again.

I want to do something similar facebook SDK login with safari..

Please help me how to open this

Was it helpful?

Solution

custom url schemes work only one way... Like if you opened safari from your application then you can't return back to your application unless the second application is also yours and you have implemented another custom url to return back to your application. Since safari was made by apple so it does not have info regarding your application.

I am not exactly sure what you are trying to achieve but you can try out UIWebView for requirement if it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top