Commit 3986359a authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 2a795c4b
......@@ -56,11 +56,12 @@
// __weak typeof(self) weakSelf = self;
self.launchScreen.finishCallBack = ^{
dispatch_async(dispatch_get_global_queue(0, 0), ^{
dispatch_sync(dispatch_get_main_queue(), ^{
window.rootViewController = finishMainVC;
});
});
result(YES);
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
// dispatch_sync(dispatch_get_main_queue(), ^{
// window.rootViewController = finishMainVC;
// });
// });
};
}
......
......@@ -22,7 +22,7 @@
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hLq-Ma-mq9">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.90000000000000002" colorSpace="custom" customColorSpace="calibratedRGB"/>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wheel_header" translatesAutoresizingMaskIntoConstraints="NO" id="6EY-ph-2hw">
<rect key="frame" x="0.0" y="64" width="414" height="89"/>
......
......@@ -36,7 +36,7 @@
} else {
// Fallback on earlier versions
}
[webViewConfig.userContentController addScriptMessageHandler:self name:@"CommitFinished"];
[webViewConfig.userContentController addScriptMessageHandler:self name:@"backTrack"];
//屏蔽底部黑框
self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight) configuration:webViewConfig];
......@@ -184,7 +184,7 @@
- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
NSLog(@"%@",message.name);// 方法名
if([message.name isEqualToString:@"CommitFinished"]){
if([message.name isEqualToString:@"backTrack"]){
__weak typeof(self) weakSelf = self;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf goBackController];
......
......@@ -3,4 +3,22 @@
uuid = "28FAD1AB-5A9D-4768-93A5-B3F5FCE13BA3"
type = "0"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "71AC211B-8804-438F-8F24-6708336CDA23"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "GYDemo/GYDemo/ViewController/GYWebViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "187"
endingLineNumber = "187"
landmarkName = "-userContentController:didReceiveScriptMessage:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment