提交
This commit is contained in:
@@ -98,9 +98,9 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
//开启手势触摸 默认设置就是NO。在ios8系统中会导致手势问题,程序崩溃
|
||||
_contentWebView.allowsBackForwardNavigationGestures = YES;
|
||||
}
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(25, self.ruleImageView.bottom, self.width-16*2, self.bgView.height-self.ruleImageView.bottom) configuration:configuration];
|
||||
_contentWebView.backgroundColor = [UIColor clearColor];
|
||||
[_contentWebView addRoundedCornersWithRadius:16];
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(16, self.ruleImageView.bottom+12, self.width-16*2, self.bgView.height-self.ruleImageView.bottom-12) configuration:configuration];
|
||||
_contentWebView.backgroundColor = RGB16A(0x000000, 0.5);
|
||||
[_contentWebView addRoundedCornersWithRadius:6];
|
||||
_contentWebView.opaque = NO;
|
||||
//适应你设定的尺寸
|
||||
[_contentWebView sizeToFit];
|
||||
|
||||
@@ -47,7 +47,7 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
self.ruleImageView.frame = CGRectMake((SCREEN_WIDTH-ScaleWidth(164))/2, 0, ScaleWidth(164), ScaleWidth(90));
|
||||
[self.bgView addSubview:self.ruleImageView];
|
||||
|
||||
[self addSubview:self.contentWebView];
|
||||
[self.bgView addSubview:self.contentWebView];
|
||||
|
||||
|
||||
|
||||
@@ -98,9 +98,9 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
//开启手势触摸 默认设置就是NO。在ios8系统中会导致手势问题,程序崩溃
|
||||
_contentWebView.allowsBackForwardNavigationGestures = YES;
|
||||
}
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(25, self.ruleImageView.bottom, self.width-16*2, self.bgView.height-self.ruleImageView.bottom) configuration:configuration];
|
||||
_contentWebView.backgroundColor = [UIColor clearColor];
|
||||
[_contentWebView addRoundedCornersWithRadius:16];
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(16, self.ruleImageView.bottom+12, self.width-16*2, self.bgView.height-self.ruleImageView.bottom-12) configuration:configuration];
|
||||
_contentWebView.backgroundColor = RGB16A(0x000000, 0.5);
|
||||
[_contentWebView addRoundedCornersWithRadius:6];
|
||||
_contentWebView.opaque = NO;
|
||||
//适应你设定的尺寸
|
||||
[_contentWebView sizeToFit];
|
||||
|
||||
@@ -98,9 +98,9 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
//开启手势触摸 默认设置就是NO。在ios8系统中会导致手势问题,程序崩溃
|
||||
_contentWebView.allowsBackForwardNavigationGestures = YES;
|
||||
}
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(25, self.ruleImageView.bottom, self.width-16*2, self.bgView.height-self.ruleImageView.bottom) configuration:configuration];
|
||||
_contentWebView.backgroundColor = [UIColor clearColor];
|
||||
[_contentWebView addRoundedCornersWithRadius:16];
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(16, self.ruleImageView.bottom+12, self.width-16*2, self.bgView.height-self.ruleImageView.bottom-12) configuration:configuration];
|
||||
_contentWebView.backgroundColor = RGB16A(0x000000, 0.5);
|
||||
[_contentWebView addRoundedCornersWithRadius:6];
|
||||
_contentWebView.opaque = NO;
|
||||
//适应你设定的尺寸
|
||||
[_contentWebView sizeToFit];
|
||||
|
||||
@@ -98,9 +98,9 @@ static void *WKWebBrowserContext = &WKWebBrowserContext;
|
||||
//开启手势触摸 默认设置就是NO。在ios8系统中会导致手势问题,程序崩溃
|
||||
_contentWebView.allowsBackForwardNavigationGestures = YES;
|
||||
}
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(25, self.ruleImageView.bottom, self.width-16*2, self.bgView.height-self.ruleImageView.bottom) configuration:configuration];
|
||||
_contentWebView.backgroundColor = [UIColor clearColor];
|
||||
[_contentWebView addRoundedCornersWithRadius:16];
|
||||
_contentWebView = [[WKWebView alloc] initWithFrame:CGRectMake(16, self.ruleImageView.bottom+12, self.width-16*2, self.bgView.height-self.ruleImageView.bottom-12) configuration:configuration];
|
||||
_contentWebView.backgroundColor = RGB16A(0x000000, 0.5);
|
||||
[_contentWebView addRoundedCornersWithRadius:6];
|
||||
_contentWebView.opaque = NO;
|
||||
//适应你设定的尺寸
|
||||
[_contentWebView sizeToFit];
|
||||
|
||||
Reference in New Issue
Block a user