Today's Menu
Portugal
journal and plan nutrition
TodaysMenu
viewControllers
nutrition
menuCapture
WKWebViewConfiguration+Console.m
Go to the documentation of this file.
1
//
2
// WKWebViewConfiguration+Console.m
3
// hah
4
//
5
// Created by housenkui on 2018/9/2.
6
// Copyright © 2018年 com.meiniucn. All rights reserved.
7
//
8
#import "
WKWebViewConfiguration+Console.h
"
9
#import <objc/runtime.h>
10
11
static
const
void
*
associateKey
=
"associateKey"
;
12
13
@implementation
WKWebViewConfiguration (Console)
14
15
- (void)setShowConsole:(BOOL)showConsole {
16
objc_setAssociatedObject(
self
,
associateKey
, @(
showConsole
), OBJC_ASSOCIATION_ASSIGN);
17
}
18
- (BOOL)
showConsole
{
19
NSNumber *numberValue = objc_getAssociatedObject(
self
,
associateKey
);
20
return
[numberValue boolValue];
21
}
22
@end
WKWebViewConfiguration+Console.h
WKWebViewConfiguration(Console)
Definition:
WKWebViewConfiguration+Console.h:11
WKWebViewConfiguration(Console)::showConsole
BOOL showConsole
Definition:
WKWebViewConfiguration+Console.h:12
associateKey
static const void * associateKey
Definition:
WKWebViewConfiguration+Console.m:11
Generated on Wed Mar 20 2019 20:57:36 for Today's Menu by
1.8.14