WebView在Xcode中显示为空白

时间:2015-08-01 11:22:21

标签: xcode webview load

嘿大家我有这个代码,总是用于加载网址,直到我将其更新为ios 8.4现在,当我点击视图时,会出现一个空白屏幕。请帮忙

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
@property (unsafe_unretained,nonatomic)IBOutlet UIWebView *viewWeb;


@end

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *fullurl= @"http://www.google.com";
    NSURL *url = [NSURL URLWithString:fullurl];
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    [_viewWeb loadRequest:requestObj];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

0 个答案:

没有答案