Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionI 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
精彩评论