Steven 1 anno fa
parent
commit
adba589716

+ 0 - 10
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -1081,8 +1081,6 @@
 		BCFDA61328BC8FCE0022B497 /* HomeHotVideoCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCFDA61128BC8FCE0022B497 /* HomeHotVideoCell.xib */; };
 		BCFDA61728BC8FDE0022B497 /* HomeHotLiveCell.m in Sources */ = {isa = PBXBuildFile; fileRef = BCFDA61528BC8FDE0022B497 /* HomeHotLiveCell.m */; };
 		BCFDA61828BC8FDE0022B497 /* HomeHotLiveCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCFDA61628BC8FDE0022B497 /* HomeHotLiveCell.xib */; };
-		BCFDA61B28BC90310022B497 /* HomePageHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = BCFDA61A28BC90310022B497 /* HomePageHeaderView.m */; };
-		BCFDA61D28BC903C0022B497 /* HomePageHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCFDA61C28BC903C0022B497 /* HomePageHeaderView.xib */; };
 		BCFDA62428BC94400022B497 /* HomeNavSearchView.m in Sources */ = {isa = PBXBuildFile; fileRef = BCFDA62328BC94400022B497 /* HomeNavSearchView.m */; };
 		BCFDA62628BC94480022B497 /* HomeNavSearchView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCFDA62528BC94480022B497 /* HomeNavSearchView.xib */; };
 		BCFDA62E28BC99410022B497 /* HomeBannerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = BCFDA62828BC99410022B497 /* HomeBannerCell.m */; };
@@ -2960,9 +2958,6 @@
 		BCFDA61428BC8FDE0022B497 /* HomeHotLiveCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeHotLiveCell.h; sourceTree = "<group>"; };
 		BCFDA61528BC8FDE0022B497 /* HomeHotLiveCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeHotLiveCell.m; sourceTree = "<group>"; };
 		BCFDA61628BC8FDE0022B497 /* HomeHotLiveCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeHotLiveCell.xib; sourceTree = "<group>"; };
-		BCFDA61928BC90310022B497 /* HomePageHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomePageHeaderView.h; sourceTree = "<group>"; };
-		BCFDA61A28BC90310022B497 /* HomePageHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomePageHeaderView.m; sourceTree = "<group>"; };
-		BCFDA61C28BC903C0022B497 /* HomePageHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomePageHeaderView.xib; sourceTree = "<group>"; };
 		BCFDA62228BC94400022B497 /* HomeNavSearchView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeNavSearchView.h; sourceTree = "<group>"; };
 		BCFDA62328BC94400022B497 /* HomeNavSearchView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeNavSearchView.m; sourceTree = "<group>"; };
 		BCFDA62528BC94480022B497 /* HomeNavSearchView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeNavSearchView.xib; sourceTree = "<group>"; };
@@ -3439,9 +3434,6 @@
 				BCD457A82864695F0010B493 /* PublicNoticeView.h */,
 				BCD457A92864695F0010B493 /* PublicNoticeView.m */,
 				BCD457AA286469600010B493 /* PublicNoticeView.xib */,
-				BCFDA61928BC90310022B497 /* HomePageHeaderView.h */,
-				BCFDA61A28BC90310022B497 /* HomePageHeaderView.m */,
-				BCFDA61C28BC903C0022B497 /* HomePageHeaderView.xib */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -7396,7 +7388,6 @@
 				BCBFDF5228115DA40052AFE5 /* HomeIntroduceView.xib in Resources */,
 				BC71D277288804CD0010F14B /* img_36.png in Resources */,
 				BC71D250288804CD0010F14B /* img_6.png in Resources */,
-				BCFDA61D28BC903C0022B497 /* HomePageHeaderView.xib in Resources */,
 				BC8A45AF283DC33400094BBB /* SoundCheckView.xib in Resources */,
 				BCFDA63828BCA1C60022B497 /* HomeRecentCourseView.xib in Resources */,
 				BC119270280FAF7D00A716F7 /* AccompanyCourseInfoCell.xib in Resources */,
@@ -8032,7 +8023,6 @@
 				BC8A459B283DC33400094BBB /* CloudSongMessageModel.m in Sources */,
 				BC8A45B7283DC33500094BBB /* NoWiredTipsAlert.m in Sources */,
 				BCC0F6722A8CD8F500C4EFA4 /* MainToolButton.m in Sources */,
-				BCFDA61B28BC90310022B497 /* HomePageHeaderView.m in Sources */,
 				277935B427E324A90010E277 /* FSCalendarDelegationProxy.m in Sources */,
 				BCC0F6CA2A8CDDFE00C4EFA4 /* ClassroomService.m in Sources */,
 				BCC0F6C52A8CDDEB00C4EFA4 /* Classroom.m in Sources */,

+ 2 - 5
KulexiuForStudent/KulexiuForStudent/Module/Home/Controller/HomeViewController.m

@@ -1467,11 +1467,8 @@
 }
 
 - (void)openSettingView {
-    if (@available(iOS 10, *)) {
-        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] options:@{} completionHandler:nil];
-    } else {
-        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
-    }
+    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] options:@{} completionHandler:nil];
+
 }
 
 - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {

+ 0 - 25
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageHeaderView.h

@@ -1,25 +0,0 @@
-//
-//  HomePageHeaderView.h
-//  KulexiuForStudent
-//
-//  Created by 王智 on 2022/8/29.
-//
-
-#import <UIKit/UIKit.h>
-
-typedef NS_ENUM(NSInteger, HOMEPAGETYPE) {
-    HOMEPAGETYPE_STYLE,  // 达人风采
-    HOMEPAGETYPE_INFORMATION, // 热门资讯
-};
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface HomePageHeaderView : UIView
-
-+ (instancetype)shareIntance;
-
-//- (void)
-
-@end
-
-NS_ASSUME_NONNULL_END

+ 0 - 20
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageHeaderView.m

@@ -1,20 +0,0 @@
-//
-//  HomePageHeaderView.m
-//  KulexiuForStudent
-//
-//  Created by 王智 on 2022/8/29.
-//
-
-#import "HomePageHeaderView.h"
-
-@implementation HomePageHeaderView
-
-/*
-// Only override drawRect: if you perform custom drawing.
-// An empty implementation adversely affects performance during animation.
-- (void)drawRect:(CGRect)rect {
-    // Drawing code
-}
-*/
-
-@end

+ 0 - 84
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomePageHeaderView.xib

@@ -1,84 +0,0 @@
-<?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">
-    <device id="retina6_1" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="HomePageHeaderView">
-            <rect key="frame" x="0.0" y="0.0" width="414" height="70"/>
-            <autoresizingMask key="autoresizingMask"/>
-            <subviews>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EFQ-sU-OX3">
-                    <rect key="frame" x="28" y="43" width="63" height="12"/>
-                    <color key="backgroundColor" red="0.1764705882352941" green="0.7803921568627451" blue="0.66666666666666663" alpha="1" colorSpace="calibratedRGB"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="12" id="Wk0-p8-p3u"/>
-                        <constraint firstAttribute="width" constant="63" id="XFl-9i-NHM"/>
-                    </constraints>
-                    <userDefinedRuntimeAttributes>
-                        <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                            <real key="value" value="6"/>
-                        </userDefinedRuntimeAttribute>
-                    </userDefinedRuntimeAttributes>
-                </view>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="N8E-y9-yqS">
-                    <rect key="frame" x="24" y="17" width="73.5" height="44"/>
-                    <subviews>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="达人风采" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rqY-Ic-uRa">
-                            <rect key="frame" x="0.0" y="9.5" width="73.5" height="25"/>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="25" id="HlN-dw-dei"/>
-                            </constraints>
-                            <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
-                            <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                    </subviews>
-                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="44" id="6EV-xH-zv5"/>
-                        <constraint firstItem="rqY-Ic-uRa" firstAttribute="leading" secondItem="N8E-y9-yqS" secondAttribute="leading" id="EcW-MU-COT"/>
-                        <constraint firstAttribute="trailing" secondItem="rqY-Ic-uRa" secondAttribute="trailing" id="SRF-bC-MRf"/>
-                        <constraint firstItem="rqY-Ic-uRa" firstAttribute="centerY" secondItem="N8E-y9-yqS" secondAttribute="centerY" id="Vmc-zd-LB3"/>
-                    </constraints>
-                </view>
-                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZXa-K0-qKa">
-                    <rect key="frame" x="133.5" y="17" width="74" height="44"/>
-                    <subviews>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="热门资讯" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GiV-R4-72D">
-                            <rect key="frame" x="0.0" y="11" width="74" height="22"/>
-                            <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
-                            <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                    </subviews>
-                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="44" id="C1k-4K-K7v"/>
-                        <constraint firstAttribute="trailing" secondItem="GiV-R4-72D" secondAttribute="trailing" id="GkY-JB-ltu"/>
-                        <constraint firstItem="GiV-R4-72D" firstAttribute="leading" secondItem="ZXa-K0-qKa" secondAttribute="leading" id="MXC-1b-Hpu"/>
-                        <constraint firstItem="GiV-R4-72D" firstAttribute="centerY" secondItem="ZXa-K0-qKa" secondAttribute="centerY" id="eiy-jH-QML"/>
-                    </constraints>
-                </view>
-            </subviews>
-            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-            <constraints>
-                <constraint firstItem="EFQ-sU-OX3" firstAttribute="bottom" secondItem="N8E-y9-yqS" secondAttribute="bottom" constant="-6" id="Ebg-DT-eTJ"/>
-                <constraint firstAttribute="bottom" secondItem="EFQ-sU-OX3" secondAttribute="bottom" constant="15" id="Gva-jv-Os9"/>
-                <constraint firstItem="EFQ-sU-OX3" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="28" id="U7v-yd-NDF"/>
-                <constraint firstItem="ZXa-K0-qKa" firstAttribute="centerY" secondItem="N8E-y9-yqS" secondAttribute="centerY" id="kMH-Nc-Rv2"/>
-                <constraint firstItem="ZXa-K0-qKa" firstAttribute="leading" secondItem="N8E-y9-yqS" secondAttribute="trailing" constant="36" id="xJd-zf-aBY"/>
-                <constraint firstItem="N8E-y9-yqS" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="24" id="y4k-PO-7Iv"/>
-            </constraints>
-            <nil key="simulatedTopBarMetrics"/>
-            <nil key="simulatedBottomBarMetrics"/>
-            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
-            <point key="canvasLocation" x="131.8840579710145" y="29.129464285714285"/>
-        </view>
-    </objects>
-</document>