Просмотр исходного кода

1.图片预览修改暂存---这个有问题

huangxiaodong 1 год назад
Родитель
Сommit
3129c29ef1

+ 12 - 0
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -630,6 +630,10 @@
 		6B7E043B2C3E6BBC004B4948 /* webSocketManager+downloadNasFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7E04392C3E6BBC004B4948 /* webSocketManager+downloadNasFile.m */; };
 		6B7E043C2C3E6BBC004B4948 /* webSocketManager+downloadNasFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7E04392C3E6BBC004B4948 /* webSocketManager+downloadNasFile.m */; };
 		6B7E043D2C3E6BBC004B4948 /* webSocketManager+downloadNasFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7E04382C3E6BBC004B4948 /* webSocketManager+downloadNasFile.h */; };
+		6B7E04432C3EA65A004B4948 /* previewLandscapeTopView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7E04412C3EA65A004B4948 /* previewLandscapeTopView.h */; };
+		6B7E04442C3EA65A004B4948 /* previewLandscapeTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7E04422C3EA65A004B4948 /* previewLandscapeTopView.m */; };
+		6B7E04452C3EA65A004B4948 /* previewLandscapeTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7E04422C3EA65A004B4948 /* previewLandscapeTopView.m */; };
+		6B7E04462C3EA65A004B4948 /* previewLandscapeTopView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7E04412C3EA65A004B4948 /* previewLandscapeTopView.h */; };
 		6B7EA7982BF5B4A6002D5CC2 /* NASFilePicModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7EA7962BF5B4A6002D5CC2 /* NASFilePicModel.h */; };
 		6B7EA7992BF5B4A6002D5CC2 /* NASFilePicModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7EA7972BF5B4A6002D5CC2 /* NASFilePicModel.m */; };
 		6B7EA79A2BF5B4A6002D5CC2 /* NASFilePicModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7EA7962BF5B4A6002D5CC2 /* NASFilePicModel.h */; };
@@ -1756,6 +1760,8 @@
 		6B7E04262C3E5A97004B4948 /* NSURLSession+customDownloadTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSURLSession+customDownloadTask.m"; sourceTree = "<group>"; };
 		6B7E04382C3E6BBC004B4948 /* webSocketManager+downloadNasFile.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "webSocketManager+downloadNasFile.h"; sourceTree = "<group>"; };
 		6B7E04392C3E6BBC004B4948 /* webSocketManager+downloadNasFile.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "webSocketManager+downloadNasFile.m"; sourceTree = "<group>"; };
+		6B7E04412C3EA65A004B4948 /* previewLandscapeTopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = previewLandscapeTopView.h; sourceTree = "<group>"; };
+		6B7E04422C3EA65A004B4948 /* previewLandscapeTopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = previewLandscapeTopView.m; sourceTree = "<group>"; };
 		6B7EA7962BF5B4A6002D5CC2 /* NASFilePicModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASFilePicModel.h; sourceTree = "<group>"; };
 		6B7EA7972BF5B4A6002D5CC2 /* NASFilePicModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASFilePicModel.m; sourceTree = "<group>"; };
 		6B7EA79C2BF5E0ED002D5CC2 /* NASMsgModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASMsgModel.h; sourceTree = "<group>"; };
@@ -2752,6 +2758,8 @@
 				6B9354AB2BF3879200AA8D31 /* shareRecordTableViewCell.m */,
 				6B7EA7BA2BF759AC002D5CC2 /* shareSecretTableViewCell.h */,
 				6B7EA7BB2BF759AC002D5CC2 /* shareSecretTableViewCell.m */,
+				6B7E04412C3EA65A004B4948 /* previewLandscapeTopView.h */,
+				6B7E04422C3EA65A004B4948 /* previewLandscapeTopView.m */,
 			);
 			path = view;
 			sourceTree = "<group>";
@@ -3605,6 +3613,7 @@
 				1810F9012AA1839C00322116 /* PhoneTimeInfoModel.h in Headers */,
 				6BA533382B16E65500D1CB5C /* TvStatusModel.h in Headers */,
 				6BBB35E22AE935C000E4A59B /* DDYLanguageTool.h in Headers */,
+				6B7E04432C3EA65A004B4948 /* previewLandscapeTopView.h in Headers */,
 				6B7E04302C3E5A98004B4948 /* customDownloadOperation.h in Headers */,
 				6B4C0F6A2C0314BA0070EF2E /* DFPlayerRequestManager.h in Headers */,
 				6B2C1E882C070ADE00FDCF82 /* ZFPlayerController.h in Headers */,
@@ -3850,6 +3859,7 @@
 				6BD506B32B9576A4006E7CB0 /* PhoneTimeInfoModel.h in Headers */,
 				6BD506B42B9576A4006E7CB0 /* TvStatusModel.h in Headers */,
 				6BD506B52B9576A4006E7CB0 /* DDYLanguageTool.h in Headers */,
+				6B7E04462C3EA65A004B4948 /* previewLandscapeTopView.h in Headers */,
 				6B7E04312C3E5A98004B4948 /* customDownloadOperation.h in Headers */,
 				6B4C0F6B2C0314BA0070EF2E /* DFPlayerRequestManager.h in Headers */,
 				6B2C1E892C070ADE00FDCF82 /* ZFPlayerController.h in Headers */,
@@ -4421,6 +4431,7 @@
 				6B2C1E492C070ADE00FDCF82 /* ZFSmallFloatControlView.m in Sources */,
 				6BD507132B9576A4006E7CB0 /* HWToolViewController.m in Sources */,
 				6BD507142B9576A4006E7CB0 /* NSString+FloatHandle.m in Sources */,
+				6B7E04452C3EA65A004B4948 /* previewLandscapeTopView.m in Sources */,
 				6BD507152B9576A4006E7CB0 /* FMDatabase.m in Sources */,
 				6B2C1E232C070ADE00FDCF82 /* UIImageView+ZFCache.m in Sources */,
 				6BD507162B9576A4006E7CB0 /* diskListTableView.m in Sources */,
@@ -4748,6 +4759,7 @@
 				6B2C1E482C070ADE00FDCF82 /* ZFSmallFloatControlView.m in Sources */,
 				A084D68927E8587400054880 /* HWToolViewController.m in Sources */,
 				18E557232A3C5D75005CC84B /* NSString+FloatHandle.m in Sources */,
+				6B7E04442C3EA65A004B4948 /* previewLandscapeTopView.m in Sources */,
 				A08A950227E9A4E400C544BB /* FMDatabase.m in Sources */,
 				6B2C1E222C070ADE00FDCF82 /* UIImageView+ZFCache.m in Sources */,
 				6B45C5052B5F9CEC007E6911 /* diskListTableView.m in Sources */,

+ 17 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewLandscapeTopView.h

@@ -0,0 +1,17 @@
+//
+//  previewLandscapeTopView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/10.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface previewLandscapeTopView : UIView
+@property(nonatomic,strong) UIButton*backButton;
+@property(nonatomic,strong) UILabel *titleLabel;
+@end
+
+NS_ASSUME_NONNULL_END

+ 36 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewLandscapeTopView.m

@@ -0,0 +1,36 @@
+//
+//  previewLandscapeTopView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/10.
+//
+
+#import "previewLandscapeTopView.h"
+
+@implementation previewLandscapeTopView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.6];
+    [self drawAnyView];
+    return self;
+}
+
+- (void)drawAnyView{
+    
+    cg
+    
+    // gradient
+    CAGradientLayer *gl = [CAGradientLayer layer];
+    gl.frame = CGRectMake(0,0,SCREEN_W,60);
+    gl.startPoint = CGPointMake(0.5, 0);
+    gl.endPoint = CGPointMake(0.5, 1);
+    gl.colors = @[(__bridge id)[UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:1.0].CGColor, (__bridge id)[UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.0].CGColor];
+    gl.locations = @[@(0), @(1.0f)];
+    //[self.layer addSublayer:gl];
+    [self.layer insertSublayer:gl atIndex:0];
+    
+    backButton
+}
+
+@end