1010
1111@interface InReadTopWKWebView ()
1212
13- @property (strong , nonatomic ) WKWebView *wkWwebView ;
13+ @property (strong , nonatomic ) WKWebView *wkWebView ;
1414
1515@property (strong , nonatomic ) TeadsAd *teadsAd;
1616
@@ -22,18 +22,18 @@ - (void)viewDidLoad {
2222 [super viewDidLoad ];
2323
2424 WKWebViewConfiguration *theConfiguration = [[WKWebViewConfiguration alloc ] init ];
25- self.wkWwebView = [[WKWebView alloc ] initWithFrame: CGRectZero configuration: theConfiguration];
26- self.wkWwebView .navigationDelegate = self;
25+ self.wkWebView = [[WKWebView alloc ] initWithFrame: CGRectZero configuration: theConfiguration];
26+ self.wkWebView .navigationDelegate = self;
2727
28- [self .view addSubview: self .wkWwebView ];
28+ [self .view addSubview: self .wkWebView ];
2929
3030 NSString *pid = [[NSUserDefaults standardUserDefaults ] stringForKey: @" pid" ];
3131 // inRead Top
32- self.teadsAd = [[TeadsAd alloc ] initInReadTopWithPlacementId: pid scrollView: self .wkWwebView .scrollView delegate: self ];
32+ self.teadsAd = [[TeadsAd alloc ] initInReadTopWithPlacementId: pid scrollView: self .wkWebView .scrollView delegate: self ];
3333
34- [self .wkWwebView setTranslatesAutoresizingMaskIntoConstraints: NO ];
35- [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[_wkWwebView ]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWwebView )]];
36- [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[_wkWwebView ]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWwebView )]];
34+ [self .wkWebView setTranslatesAutoresizingMaskIntoConstraints: NO ];
35+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[_wkWebView ]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWebView )]];
36+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[_wkWebView ]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWebView )]];
3737
3838 self.navigationItem .title = @" inRead Top WKWebView" ;
3939
@@ -46,7 +46,7 @@ - (void)viewDidLoad {
4646 } else {
4747 webSiteURL = [NSURL URLWithString: urlToLoad];
4848 }
49- [self .wkWwebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
49+ [self .wkWebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
5050
5151}
5252
0 commit comments