我正在实现一个基本上加载网页的应用程序(适用于 iphone 和 ipad)。iPhone 的 webview 加载正确,但 iPad WebView 什么也没做?!
这是我的 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"]]];
}