Reputation: 3433
hi i am new to iphone, what i done is place a button and in button click event i call a web browser it works fine. but i cant able to get back to my application screen.By pressing the menu button of iphone ie will quit directly how can i get back to my application. pls help me thank u.
Upvotes: 2
Views: 1931
Reputation: 170508
I am impressed that Apple did not provide a gesture for go-back-to-previous app on iOS, probably they will add one in a future version after they file a patent on it ;)
Currently the only workaround is to register your own aplication URI (URL). As you can imagine this will work only for your app.
Upvotes: 0
Reputation: 1575
You can have your app register a custom URL scheme yourapp:// which you can then embed as a link in your web page - clicking on it in MobileSafari would launch your app. based on the scheme URL construct you can send data back to your app via this URL scheme:
yourapp://sometokenorvaluetopassback
Upvotes: 1
Reputation: 4629
You can't. If you want this sort of functionality, you'll need to open the URL in a web view inside your app.
Upvotes: 0
Reputation: 2701
As far as I know, iphone OS is a single thread OS. once you are in a browser, you could not go back to your application.
Upvotes: 0