기본적으로 웹 페이지를로드하는 앱 (iphone 및 ipad 용 범용)을 구현하고 있습니다. iPhone 용 webview가 제대로로드되지만 iPad WebView는 아무 것도하지 않습니다. Heres는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"]]];
}
당신에게 웹보기 중 하나를 인스턴스화하지 마십시오. –
ipad에서 인터넷 연결을 확인하십시오 – Rajneesh071
인터넷 연결이 작동 중입니다 ... –