开发者

Launching web app from native app

Does anyone know how to launch a web app from a native app?

I assume that this is hard to achive, but the next best thing would be to launch safari with a specific URL, without the开发者_运维百科 URL-bar. And I don't want it to be done within the app, I would prefer if the native app could go into a suspended state.


It's not hard to achieve, it's easy with UIWebView http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html


[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.makebetterthings.com/blogs/"]];

and enable multitasking in your app so when the safari opens your app will go in suspended mode.

Update -

Read my these blog entries -

http://www.makebetterthings.com/blogs/iphone/open-phone-sms-email-map-and-browser-apps-in-iphone-sdk/ http://www.makebetterthings.com/blogs/iphone/launching-your-own-application-via-a-custom-url-scheme/

unfortunately you can not open all the apps! but you can add custom URL scheme in your own app to open them

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜