Browse Source

音波动效图切换

桂欢 1 năm trước cách đây
mục cha
commit
95549f13c7

+ 4 - 0
SLAiELTS/SLAiELTS.xcodeproj/project.pbxproj

@@ -137,6 +137,7 @@
 		3D3BC3552A26E2B000AEEE8E /* SLMySpeedCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D3BC3532A26E2B000AEEE8E /* SLMySpeedCell.xib */; };
 		3D3BC35A2A27283600AEEE8E /* SLSexSetVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D3BC3582A27283600AEEE8E /* SLSexSetVc.m */; };
 		3D3BC35B2A27283600AEEE8E /* SLSexSetVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D3BC3592A27283600AEEE8E /* SLSexSetVc.xib */; };
+		3D3BC35D2A273E7500AEEE8E /* icon_yb_bg_01.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 3D3BC35C2A273E7400AEEE8E /* icon_yb_bg_01.jpg */; };
 		3D5BC38B29E3E77400748197 /* SLMoentsChatView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D5BC38A29E3E77400748197 /* SLMoentsChatView.m */; };
 		3D5BC38F29E3F87100748197 /* SLFriensInfoVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D5BC38D29E3F87100748197 /* SLFriensInfoVc.m */; };
 		3D5BC39029E3F87100748197 /* SLFriensInfoVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5BC38E29E3F87100748197 /* SLFriensInfoVc.xib */; };
@@ -514,6 +515,7 @@
 		3D3BC3572A27283600AEEE8E /* SLSexSetVc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLSexSetVc.h; sourceTree = "<group>"; };
 		3D3BC3582A27283600AEEE8E /* SLSexSetVc.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLSexSetVc.m; sourceTree = "<group>"; };
 		3D3BC3592A27283600AEEE8E /* SLSexSetVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLSexSetVc.xib; sourceTree = "<group>"; };
+		3D3BC35C2A273E7400AEEE8E /* icon_yb_bg_01.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = icon_yb_bg_01.jpg; path = "../../../../../../../Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/1fdfdbd8c9b5653cd014c44cc8275865/Message/MessageTemp/a99af68e196bdd426af09785d58507f6/Image/icon_yb_bg_01.jpg"; sourceTree = "<group>"; };
 		3D5BC38929E3E77400748197 /* SLMoentsChatView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLMoentsChatView.h; sourceTree = "<group>"; };
 		3D5BC38A29E3E77400748197 /* SLMoentsChatView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLMoentsChatView.m; sourceTree = "<group>"; };
 		3D5BC38C29E3F87100748197 /* SLFriensInfoVc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLFriensInfoVc.h; sourceTree = "<group>"; };
@@ -1308,6 +1310,7 @@
 		3D3BC1212A1DF58100AEEE8E /* 音波 */ = {
 			isa = PBXGroup;
 			children = (
+				3D3BC35C2A273E7400AEEE8E /* icon_yb_bg_01.jpg */,
 				3D3BC34A2A25E73800AEEE8E /* icon_yb_bg.jpg */,
 			);
 			path = "音波";
@@ -2004,6 +2007,7 @@
 				3D8C9F8529AC57F200678283 /* Main.storyboard in Resources */,
 				3DF3DAD329BAC90F00CAD3AB /* SLModifyNicknameVc.xib in Resources */,
 				3DF3DAB829B9B93000CAD3AB /* SLBaseCollectionViewCell.xib in Resources */,
+				3D3BC35D2A273E7500AEEE8E /* icon_yb_bg_01.jpg in Resources */,
 				3D2DC3C629B078FE0041A729 /* Resources.bundle in Resources */,
 				3D3BC3502A26D7D300AEEE8E /* SLAiSetVc.xib in Resources */,
 				3D8EBBCE2A14B6EC0008B0C1 /* SLWebViewController.xib in Resources */,

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/MessageVC/SLMessageViewController.m

@@ -77,6 +77,7 @@
     
     WS(weakSelf);
     [self nuisdkPlay];
+    [self configNavigationBar];
     [self.KVOController observe:self.mikeInputView.contentView keyPath:@"hidden" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld block:^(id  _Nullable observer, id  _Nonnull object, NSDictionary<NSKeyValueChangeKey,id> * _Nonnull change) {
         if (![change[NSKeyValueChangeNewKey] boolValue]) {
             [weakSelf.nuisdkPlay stopNuisdkPlay];
@@ -100,7 +101,6 @@
 //        
 //    }];
     
-    [self configNavigationBar];
     
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillChangeFrame:) name:UIKeyboardWillShowNotification object:nil];
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardWillHideNotification object:nil];

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/MessageVC/Views/SLMikeInputView.m

@@ -56,7 +56,7 @@
     self.mikeTipImageView.animationRepeatCount = 0;
     //启动动画
     [self.mikeTipImageView startAnimating];
-    NSString *dataPath = [[NSBundle mainBundle]pathForResource:@"icon_yb_bg" ofType:@"jpg"];
+    NSString *dataPath = [[NSBundle mainBundle]pathForResource:@"icon_yb_bg_01" ofType:@"jpg"];
     NSData *data = [NSData dataWithContentsOfFile:dataPath];
     self.mikeTipImageView.image = [self decodeGifImageByData:data];
     self.nuiSpeechRecognizer.onVolumeChangedBlock = ^(CGFloat volume) {

+ 7 - 5
SLAiELTS/SLAiELTS/ViewControllers/MessageVC/Views/SLMikeInputView.xib

@@ -39,17 +39,19 @@
                 <imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_mike_cancel_nor" translatesAutoresizingMaskIntoConstraints="NO" id="OVz-mu-onH">
                     <rect key="frame" x="165" y="627.66666666666663" width="60.333333333333343" height="60.333333333333371"/>
                 </imageView>
-                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_yb_bg" translatesAutoresizingMaskIntoConstraints="NO" id="igR-nc-VIH">
-                    <rect key="frame" x="0.0" y="348" width="390" height="128"/>
+                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_yb_bg_01.jpg" translatesAutoresizingMaskIntoConstraints="NO" id="igR-nc-VIH">
+                    <rect key="frame" x="0.0" y="220.33333333333334" width="390" height="383.33333333333326"/>
+                    <constraints>
+                        <constraint firstAttribute="width" secondItem="igR-nc-VIH" secondAttribute="height" multiplier="175:172" id="cau-gb-70Y"/>
+                    </constraints>
                 </imageView>
             </subviews>
             <color key="backgroundColor" systemColor="systemBackgroundColor"/>
             <constraints>
                 <constraint firstAttribute="trailing" secondItem="76w-rg-8wP" secondAttribute="trailing" id="7J6-R3-8hR"/>
                 <constraint firstItem="dkF-D7-cqe" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="9w2-p4-wvp"/>
-                <constraint firstAttribute="trailing" secondItem="igR-nc-VIH" secondAttribute="trailing" id="FoG-FQ-Bi4"/>
                 <constraint firstItem="OVz-mu-onH" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="IQ4-8I-Kur"/>
-                <constraint firstItem="igR-nc-VIH" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Lir-sZ-0ZL"/>
+                <constraint firstItem="igR-nc-VIH" firstAttribute="width" secondItem="iN0-l3-epB" secondAttribute="width" id="NIy-Mi-C0Y"/>
                 <constraint firstAttribute="bottom" secondItem="76w-rg-8wP" secondAttribute="bottom" id="NiK-bs-NnZ"/>
                 <constraint firstItem="dkF-D7-cqe" firstAttribute="top" secondItem="OVz-mu-onH" secondAttribute="bottom" constant="20" id="aww-J7-pkg"/>
                 <constraint firstItem="76w-rg-8wP" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="cyf-Ug-7Gb"/>
@@ -64,7 +66,7 @@
     <resources>
         <image name="icon_mike_cancel_nor" width="60.333332061767578" height="60.333332061767578"/>
         <image name="icon_mike_input_bg" width="375.33334350585938" height="110.33333587646484"/>
-        <image name="icon_yb_bg" width="128" height="128"/>
+        <image name="icon_yb_bg_01.jpg" width="700" height="688"/>
         <systemColor name="systemBackgroundColor">
             <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>