Browse Source

1.隐藏公告气泡动效

Steven 2 days ago
parent
commit
7af6348d31

+ 5 - 5
KulexiuForTeacher/KulexiuForTeacher/Common/Base/AlertView/KSPublicAlertView.xib

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23094" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina6_1" orientation="portrait" appearance="light"/>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23084"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -27,7 +27,7 @@
                         </label>
                         <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="L4C-eG-exs">
                             <rect key="frame" x="162.5" y="125.5" width="144.5" height="44"/>
-                            <color key="backgroundColor" red="0.1764705882" green="0.78039215689999997" blue="0.66666666669999997" alpha="1" colorSpace="calibratedRGB"/>
+                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             <fontDescription key="fontDescription" type="system" pointSize="16"/>
                             <state key="normal" title="确定">
                                 <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -48,7 +48,7 @@
                             </constraints>
                             <fontDescription key="fontDescription" type="system" pointSize="16"/>
                             <state key="normal" title="取消">
-                                <color key="titleColor" red="0.0039215686269999999" green="0.75686274509999996" blue="0.70980392160000005" alpha="1" colorSpace="calibratedRGB"/>
+                                <color key="titleColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             </state>
                             <userDefinedRuntimeAttributes>
                                 <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
@@ -75,7 +75,7 @@
                         </label>
                         <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hVM-RC-bSr">
                             <rect key="frame" x="18" y="24" width="4" height="18"/>
-                            <color key="backgroundColor" red="0.0039215686269999999" green="0.75686274509999996" blue="0.70980392160000005" alpha="1" colorSpace="calibratedRGB"/>
+                            <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             <constraints>
                                 <constraint firstAttribute="height" constant="18" id="xpH-rm-A2j"/>
                                 <constraint firstAttribute="width" constant="4" id="z6W-x6-koW"/>

+ 19 - 19
KulexiuForTeacher/Pods/TIMCommon/TIMCommon/BaseCell/TUIMessageCell.m

@@ -374,25 +374,25 @@
 
 - (void)highlightWhenMatchKeyword:(NSString *)keyword {
     static NSString *const key = @"highlightAnimation";
-    if (keyword && keyword.length) {
-        if (self.highlightAnimating) {
-            return;
-        }
-        self.highlightAnimating = YES;
-        CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"backgroundColor"];
-        animation.repeatCount = 3;
-        animation.values = @[
-            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.2].CGColor,
-            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.5].CGColor,
-            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.2].CGColor,
-        ];
-        animation.duration = 0.5;
-        animation.removedOnCompletion = YES;
-        animation.delegate = self;
-        [self.highlightAnimateView.layer addAnimation:animation forKey:key];
-    } else {
-        [self.highlightAnimateView.layer removeAnimationForKey:key];
-    }
+//    if (keyword && keyword.length) {
+//        if (self.highlightAnimating) {
+//            return;
+//        }
+//        self.highlightAnimating = YES;
+//        CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"backgroundColor"];
+//        animation.repeatCount = 3;
+//        animation.values = @[
+//            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.2].CGColor,
+//            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.5].CGColor,
+//            (id)[[UIColor orangeColor] colorWithAlphaComponent:0.2].CGColor,
+//        ];
+//        animation.duration = 0.5;
+//        animation.removedOnCompletion = YES;
+//        animation.delegate = self;
+//        [self.highlightAnimateView.layer addAnimation:animation forKey:key];
+//    } else {
+//        [self.highlightAnimateView.layer removeAnimationForKey:key];
+//    }
 }
 
 - (void)updateReadLabelText {