我正在實現一個基本上加載網頁的應用程序(通用於iphone和ipad)。 iPhone的webview加載正確,但iPad WebView無所事事?WebView for iPad未加載頁面
繼承人我ViewController.m
#import "ViewController.h"
@interface ViewController()
@property (weak, nonatomic) IBOutlet UIWebView *webView;
@property (weak, nonatomic) IBOutlet UIWebView *webViewiPad;
@end
@implementation ViewController
@synthesize webView = _webView;
@synthesize webViewiPad = _webViewiPad;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.at"]]];
[self.webViewiPad loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.at"]]];
}
你請勿實例化您的任何Web視圖。 – 2012-09-01 12:23:10
檢查您的互聯網連接在ipad – Rajneesh071
互聯網連接正在工作... –