开发者

retrieving URL in iOS app [closed]

开发者 https://www.devze.com 2023-04-07 17:18 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

I need to display a homepage in my iPad application. I have been reading the URL Loading information on the Apple Developer site and am confused. In the sample code for SimpleURLConnections, they have a Python server. A colleague mentioned that it should be just a couple lines of code, so clearly I am missing s开发者_如何转开发omething. There must be an easier way to do this, but I'm at a loss as to what that is.


It should be easy loading an external browser with cocoa touch. You could use UIWebview with your own browser, but it's easier this way.

This is from my own app:

- (IBAction)doSupportURL {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://webpages.charter.net/apollosoftware/support/"]];

}

with UIWebView see loadRequest

0

精彩评论

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