10
10
11
11
@interface InReadTopWKWebView ()
12
12
13
- @property (strong , nonatomic ) WKWebView *wkWwebView ;
13
+ @property (strong , nonatomic ) WKWebView *wkWebView ;
14
14
15
15
@property (strong , nonatomic ) TeadsAd *teadsAd;
16
16
@@ -22,18 +22,18 @@ - (void)viewDidLoad {
22
22
[super viewDidLoad ];
23
23
24
24
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;
27
27
28
- [self .view addSubview: self .wkWwebView ];
28
+ [self .view addSubview: self .wkWebView ];
29
29
30
30
NSString *pid = [[NSUserDefaults standardUserDefaults ] stringForKey: @" pid" ];
31
31
// 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 ];
33
33
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 )]];
37
37
38
38
self.navigationItem .title = @" inRead Top WKWebView" ;
39
39
@@ -46,7 +46,7 @@ - (void)viewDidLoad {
46
46
} else {
47
47
webSiteURL = [NSURL URLWithString: urlToLoad];
48
48
}
49
- [self .wkWwebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
49
+ [self .wkWebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
50
50
51
51
}
52
52
0 commit comments