【发布时间】:2013-06-19 07:06:47
【问题描述】:
NSString *urlAddress;
urlAddress = @"http://ob.carptown.net";
NSURL *url =[NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[page loadRequest:requestObj];
[page addSubview:activityView];
timer = [NSTimer scheduledTimerWithTimeInterval:(1.0/2.0)
target:self
selector:@selector(loading)
userInfo:nil repeats:YES];
goBack.enabled = page.canGoBack;
goNext.enabled = page.canGoForward;
UIViewView 无法打开上述网址 (http://ob.carptown.net)。
我测试了另一个 URL,UIViewView 打开了它们。但是 URL 可以在 Safari 中打开。
我想要打开 safari 的 URL,我想像 UIWebView 一样控制 safari。
我该怎么做?
【问题讨论】:
-
您希望 webView 在应用内打开还是转移到独立的 safari 应用?
-
我只想打开网址(ob.carotown.net)。
-
不离开应用程序?
-
是的,不用我的应用程序就可以离开。
标签: objective-c uiwebview