1010
1111@interface InReadWKWebview ()
1212
13- @property (strong , nonatomic ) WKWebView *wkWwebView ;
13+ @property (strong , nonatomic ) WKWebView *wkWebView ;
1414
1515@property (strong , nonatomic ) TeadsAd *teadsInRead;
1616
@@ -22,14 +22,14 @@ - (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
30- [self .wkWwebView setTranslatesAutoresizingMaskIntoConstraints: NO ];
31- [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[_wkWwebView]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWwebView )]];
32- [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[_wkWwebView]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWwebView )]];
30+ [self .wkWebView setTranslatesAutoresizingMaskIntoConstraints: NO ];
31+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[_wkWwebView]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWebView )]];
32+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[_wkWwebView]|" options: 0 metrics: nil views: NSDictionaryOfVariableBindings(_wkWebView )]];
3333
3434 self.navigationItem .title = @" inRead WKWebView" ;
3535
@@ -43,18 +43,18 @@ - (void)viewDidLoad {
4343 // Here we specify in placeholderText an id for a HTML node to insert the inRead
4444 self.teadsInRead = [[TeadsAd alloc ] initInReadWithPlacementId: pid
4545 placeholderText: @" #my-placement-id"
46- wkWebView: self .wkWwebView
46+ wkWebView: self .wkWebView
4747 delegate: self ];
4848 webSiteURL = [NSURL fileURLWithPath: [[NSBundle mainBundle ] pathForResource: @" index" ofType: @" html" ] isDirectory: NO ];
4949 } else {
5050 // inRead
5151 self.teadsInRead = [[TeadsAd alloc ] initInReadWithPlacementId: pid
5252 placeholderText: [[NSUserDefaults standardUserDefaults ] stringForKey: @" placeholderText" ]
53- wkWebView: self .wkWwebView
53+ wkWebView: self .wkWebView
5454 delegate: self ];
5555 webSiteURL = [NSURL URLWithString: urlToLoad];
5656 }
57- [self .wkWwebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
57+ [self .wkWebView loadRequest: [NSURLRequest requestWithURL: webSiteURL]];
5858
5959}
6060
0 commit comments