hi am developing an iPhone app. When i clicked a link in a UITextView, the link was opened in safari and my app went background. After closing the safari, i clicked my app icon and it was again brought to foreground. My question is that whether we can bring the app back to foreground automatically, without clicking the app icon, when i close safari.
Share
No, you can’t detect when the user closes Safari, what you could do is register a URL scheme for your application and make it a link in the web view. Basically a return to app button on the web page.
This tutorial should help you:http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-working-with-url-schemes/