Commit 767e2df9 authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 34b6e83d
......@@ -80,6 +80,11 @@
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
<view key="backgroundView" contentMode="scaleToFill" id="LUl-XH-N1M">
<rect key="frame" x="0.0" y="0.0" width="363" height="350"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="SCHomeCell" id="n5F-3D-esz" customClass="SCHomeCell">
<rect key="frame" x="18" y="0.0" width="327" height="92"/>
......@@ -95,20 +100,20 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FUe-po-yXc">
<rect key="frame" x="78.5" y="27" width="35.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20392156862745098" green="0.20392156862745098" blue="0.20392156862745098" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<rect key="frame" x="78.5" y="27" width="36" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qr2-CO-OPH">
<rect key="frame" x="78.5" y="52" width="28.5" height="13.5"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.60784313725490191" green="0.70196078431372544" blue="0.82352941176470584" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="0.84999999999999998" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YJh-Qm-QMN">
<rect key="frame" x="0.0" y="0.0" width="327" height="0.5"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="4F4-Qx-peC"/>
</constraints>
......@@ -120,7 +125,7 @@
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gXT-DX-0tB">
<rect key="frame" x="0.0" y="91.5" width="327" height="0.5"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="eYN-wY-6mm"/>
</constraints>
......@@ -132,7 +137,7 @@
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ueJ-Hi-iHu">
<rect key="frame" x="0.0" y="0.0" width="0.5" height="92"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="0.5" id="2HY-KF-4Uk"/>
</constraints>
......@@ -144,7 +149,7 @@
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cNF-xd-ZI3">
<rect key="frame" x="326.5" y="0.0" width="0.5" height="92"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="0.5" id="dMT-k5-LvS"/>
</constraints>
......
......@@ -306,26 +306,50 @@
break;
case 3:
{
ICCleanDustViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICCleanDustViewController"];
[self.navigationController pushViewController:vc animated:true];
if ([ICUserManager shared].isMember) {
ICCleanDustViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICCleanDustViewController"];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
case 4:
{
ICNetworkSpeedViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICNetworkSpeedViewController"];
[self.navigationController pushViewController:vc animated:true];
if ([ICUserManager shared].isMember) {
ICNetworkSpeedViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICNetworkSpeedViewController"];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
case 5:
{
ICDbTestViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICDbTestViewController"];
[self.navigationController pushViewController:vc animated:true];
if ([ICUserManager shared].isMember) {
ICDbTestViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICDbTestViewController"];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
case 6:
{
ICBatteryCareViewController *vc = [[ICBatteryCareViewController alloc] init];
[self.navigationController pushViewController:vc animated:true];
if ([ICUserManager shared].isMember) {
ICBatteryCareViewController *vc = [[ICBatteryCareViewController alloc] init];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
default:
......
......@@ -103,6 +103,39 @@
_similarPhotoContentView.backgroundColor = kMassColorAlpha(0.15);
_similarVideoContentView.backgroundColor = kMassColorAlpha(0.15);
_screenshotContentView.tag = 0x8c+1;
_livePhotoContentView.tag = 0x8c+3;
_similarPhotoContentView.tag = 0x8c;
_similarVideoContentView.tag = 0x8c+2;
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap3 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
[_screenshotContentView addGestureRecognizer:tap];
[_livePhotoContentView addGestureRecognizer:tap1];
[_similarPhotoContentView addGestureRecognizer:tap2];
[_similarVideoContentView addGestureRecognizer:tap3];
}
- (void)viewTapGes:(UITapGestureRecognizer *)ges{
switch (ges.view.tag-0x8c) {
case 0:
[self similarPhotoDetailAction];
break;
case 1:
[self screenshotDetailAction];
break;
case 2:
break;
case 3:
[self livePhotoDetailAction];
break;
default:
break;
}
}
- (void)updateUI{
......
......@@ -24,7 +24,7 @@ class ICPurchaseManager: NSObject {
case .success(let product):
print("Purchase Success: \(product.productId)")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "0dee7332e952467c97e5d4ecd1f788f6")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "ed0f68aca7964038a5cdf2a68c8c35c4")
let hud = MBProgressHUD.showAdded(to: inView, animated: true)
SwiftyStoreKit.verifyReceipt(using: appleValidator) { result in
hud.hide(animated: true)
......@@ -230,7 +230,7 @@ class ICPurchaseManager: NSObject {
print("Restore sortedResults: \(sortedResults)")
if let purchase = sortedResults.last {
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "0dee7332e952467c97e5d4ecd1f788f6")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "ed0f68aca7964038a5cdf2a68c8c35c4")
let hud = MBProgressHUD.showAdded(to: UIApplication.shared.delegate!.window!!, animated: true)
SwiftyStoreKit.verifyReceipt(using: appleValidator) { result in
hud.hide(animated: true)
......
......@@ -86,7 +86,7 @@
- (void)pingActionFired {
self.pingServices = [STDPingServices startPingAddress: @"117.78.49.136" monitorTime: 5 callbackHandler:^(STDPingItem *pingItem, NSArray *pingItems) {
self.pingServices = [STDPingServices startPingAddress: @"https://www.baidu.com" monitorTime: 5 callbackHandler:^(STDPingItem *pingItem, NSArray *pingItems) {
if (pingItem.status != STDPingStatusFinished) {
NSLog(@"-----%@", pingItem.description);
} else {
......
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