Authored by ZhangTonghai

update demo

... ... @@ -28,32 +28,32 @@ PODS:
- ALWlibwebp/libwebp/utils (0.1.4):
- ALWlibwebp/libwebp/core
- ALWlibwebp/libwebp/webp (0.1.4)
- YHExplorer (1.5.1):
- YHExplorer (1.6.0):
- ALWlibwebp
- YHExplorer/Cache (= 1.5.1)
- YHExplorer/CordovaLib (= 1.5.1)
- YHExplorer/Extend (= 1.5.1)
- YHExplorer/WebProgressView (= 1.5.1)
- YHExplorer/YHLinkParser (= 1.5.1)
- YHExplorer/YHPlugins (= 1.5.1)
- YHExplorer/Cache (1.5.1):
- YHExplorer/Cache (= 1.6.0)
- YHExplorer/CordovaLib (= 1.6.0)
- YHExplorer/Extend (= 1.6.0)
- YHExplorer/WebProgressView (= 1.6.0)
- YHExplorer/YHLinkParser (= 1.6.0)
- YHExplorer/YHPlugins (= 1.6.0)
- YHExplorer/Cache (1.6.0):
- ALWlibwebp
- YHExplorer/CordovaLib (1.5.1):
- YHExplorer/CordovaLib (1.6.0):
- ALWlibwebp
- YHExplorer/Extend (1.5.1):
- YHExplorer/Extend (1.6.0):
- ALWlibwebp
- YHExplorer/WebProgressView (1.5.1):
- YHExplorer/WebProgressView (1.6.0):
- ALWlibwebp
- YHExplorer/YHLinkParser (1.5.1):
- YHExplorer/YHLinkParser (1.6.0):
- ALWlibwebp
- YHExplorer/YHPlugins (1.5.1):
- YHExplorer/YHPlugins (1.6.0):
- ALWlibwebp
DEPENDENCIES:
- YHExplorer (from `../`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
https://github.com/CocoaPods/Specs.git:
- ALWlibwebp
EXTERNAL SOURCES:
... ... @@ -62,8 +62,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
ALWlibwebp: 1b4341a84c8e09234c5b7b3dd0e909217901999e
YHExplorer: 82dfaf4935bce1687a0fc50be7a0df6c62ceae80
YHExplorer: db3fbb8ca831c60bb75223deaa222e2c06fa65d1
PODFILE CHECKSUM: bd96dfa26a9574a97627d8618b9dbe31b60fc137
COCOAPODS: 1.5.3
COCOAPODS: 1.8.3
... ...
... ... @@ -256,25 +256,25 @@
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-YohoExplorerDemo/Pods-YohoExplorerDemo-resources.sh",
"${PODS_ROOT}/Target Support Files/Pods-YohoExplorerDemo/Pods-YohoExplorerDemo-resources.sh",
"${PODS_ROOT}/../../YHExplorer/Mask.png",
"${PODS_ROOT}/../../YHExplorer/yh_explorer_refresh_icon@2x.png",
"${PODS_ROOT}/../../YHExplorer/yh_explorer_refresh_icon@3x.png",
"${PODS_ROOT}/../../YHExplorer/CordovaLib/config.xml",
"${PODS_ROOT}/../../YHExplorer/CordovaLib/cordova.js",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Mask.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/yh_explorer_refresh_icon@2x.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/yh_explorer_refresh_icon@3x.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/config.xml",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/cordova.js",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YohoExplorerDemo/Pods-YohoExplorerDemo-resources.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-YohoExplorerDemo/Pods-YohoExplorerDemo-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
... ...
... ... @@ -7,7 +7,7 @@
//
#import "AppDelegate.h"
#import "YHURLCache.h"
//#import "YHURLCache.h"
@interface AppDelegate ()
... ... @@ -19,11 +19,11 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
YHURLCache *urlCache = [[YHURLCache alloc] initWithMemoryCapacity:0
diskCapacity:200*1024*1024// 200MB
diskPath:nil
cacheDuration:0];
[YHURLCache setSharedURLCache:urlCache];
// YHURLCache *urlCache = [[YHURLCache alloc] initWithMemoryCapacity:0
// diskCapacity:200*1024*1024// 200MB
// diskPath:nil
// cacheDuration:0];
// [YHURLCache setSharedURLCache:urlCache];
return YES;
}
... ...
... ... @@ -75,9 +75,9 @@
[super viewDidLoad];
self.webView.delegate = self;
self.webView.enableProgressBar = YES;
self.webView.enablePictureTapGesture = YES;
// self.webView.enablePictureTapGesture = YES;
// self.webView.constraintIdsForPictureTapGesture = @[ @"productDesc", @"enter-store" ];
self.webView.constraintClassesForPictureTapGesture = @[ @"product-detail", @"wash-tips", @"measurement-method" ];
// self.webView.constraintClassesForPictureTapGesture = @[ @"product-detail", @"wash-tips", @"measurement-method" ];
[self.webView loadWebUrl:self.url];
// [self.webView loadWebUrl:[[NSBundle mainBundle] pathForResource:@"untitled" ofType:@"html"]];
... ...