ソースを参照

1.修改iOS Apex Mobile删除Result Field编辑。

Pen Li 7 年 前
コミット
5fccaeea98

+ 0 - 16
Apex Mobile/Apex Mobile.xcodeproj/project.pbxproj

@@ -68,9 +68,6 @@
 		42BFD2D2207B697800DA9038 /* KPICell.m in Sources */ = {isa = PBXBuildFile; fileRef = 42BFD2D1207B697800DA9038 /* KPICell.m */; };
 		42C6754E21E2F1D4001E3FF4 /* ApexResultAdditionView.m in Sources */ = {isa = PBXBuildFile; fileRef = 42C6754D21E2F1D4001E3FF4 /* ApexResultAdditionView.m */; };
 		42C6755221E32654001E3FF4 /* ApexResultViewController+QuickLook.m in Sources */ = {isa = PBXBuildFile; fileRef = 42C6755121E32654001E3FF4 /* ApexResultViewController+QuickLook.m */; };
-		42C6755621E34EAF001E3FF4 /* ApexFieldsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 42C6755521E34EAF001E3FF4 /* ApexFieldsViewController.m */; };
-		42C6755821E34FB0001E3FF4 /* ApexResultFields.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 42C6755721E34FB0001E3FF4 /* ApexResultFields.storyboard */; };
-		42C6755B21E35112001E3FF4 /* ApexResultFieldCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 42C6755A21E35112001E3FF4 /* ApexResultFieldCell.m */; };
 		42DE626220A41907005FB582 /* AMTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 42DE626120A41907005FB582 /* AMTextField.m */; };
 		7101BEC82031389A00CC6E3A /* DetailCellKVNew.m in Sources */ = {isa = PBXBuildFile; fileRef = 7101BEC72031389A00CC6E3A /* DetailCellKVNew.m */; };
 		711BA6C1191E0525002EDE6F /* MessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 711BA6C0191E0525002EDE6F /* MessageViewController.m */; };
@@ -319,11 +316,6 @@
 		42C6754D21E2F1D4001E3FF4 /* ApexResultAdditionView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ApexResultAdditionView.m; sourceTree = "<group>"; };
 		42C6755021E32654001E3FF4 /* ApexResultViewController+QuickLook.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ApexResultViewController+QuickLook.h"; sourceTree = "<group>"; };
 		42C6755121E32654001E3FF4 /* ApexResultViewController+QuickLook.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "ApexResultViewController+QuickLook.m"; sourceTree = "<group>"; };
-		42C6755421E34EAF001E3FF4 /* ApexFieldsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ApexFieldsViewController.h; sourceTree = "<group>"; };
-		42C6755521E34EAF001E3FF4 /* ApexFieldsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ApexFieldsViewController.m; sourceTree = "<group>"; };
-		42C6755721E34FB0001E3FF4 /* ApexResultFields.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = ApexResultFields.storyboard; sourceTree = "<group>"; };
-		42C6755921E35112001E3FF4 /* ApexResultFieldCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ApexResultFieldCell.h; sourceTree = "<group>"; };
-		42C6755A21E35112001E3FF4 /* ApexResultFieldCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ApexResultFieldCell.m; sourceTree = "<group>"; };
 		42DE626020A41907005FB582 /* AMTextField.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AMTextField.h; sourceTree = "<group>"; };
 		42DE626120A41907005FB582 /* AMTextField.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AMTextField.m; sourceTree = "<group>"; };
 		7101BEC62031389A00CC6E3A /* DetailCellKVNew.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DetailCellKVNew.h; sourceTree = "<group>"; };
@@ -851,11 +843,6 @@
 		42C6755321E34E77001E3FF4 /* ResultFields */ = {
 			isa = PBXGroup;
 			children = (
-				42C6755421E34EAF001E3FF4 /* ApexFieldsViewController.h */,
-				42C6755521E34EAF001E3FF4 /* ApexFieldsViewController.m */,
-				42C6755721E34FB0001E3FF4 /* ApexResultFields.storyboard */,
-				42C6755921E35112001E3FF4 /* ApexResultFieldCell.h */,
-				42C6755A21E35112001E3FF4 /* ApexResultFieldCell.m */,
 			);
 			path = ResultFields;
 			sourceTree = "<group>";
@@ -1470,7 +1457,6 @@
 			files = (
 				42541ACF207C49610072BC5A /* fake_home.json in Resources */,
 				71625470201C5205009E3A41 /* fake_container_list.json in Resources */,
-				42C6755821E34FB0001E3FF4 /* ApexResultFields.storyboard in Resources */,
 				7162546B201C3AF1009E3A41 /* readme.txt in Resources */,
 				42604129201C57A7002374A8 /* ShipSearch.storyboard in Resources */,
 				715643DC201C117300B04267 /* search.json in Resources */,
@@ -1534,7 +1520,6 @@
 				71406DD118C36A6E000914C4 /* TableCellDate.m in Sources */,
 				717D772F18C84E3F0070302D /* PageData.m in Sources */,
 				425390202079B99B00ECF982 /* XYCommon.m in Sources */,
-				42C6755B21E35112001E3FF4 /* ApexResultFieldCell.m in Sources */,
 				715709BB20215E0000EFE5C5 /* NSData+Base64.m in Sources */,
 				71375C8F18D96EDE00EBA026 /* TabBarController.m in Sources */,
 				42BB7402208431DA00B9B6E4 /* KPILegendCell.m in Sources */,
@@ -1572,7 +1557,6 @@
 				715709BA20215E0000EFE5C5 /* NSString+Base64.m in Sources */,
 				71AE427318C47AF900B8EC3D /* SearchViewController.m in Sources */,
 				715643BE2019AA9B00B04267 /* LoginViewController.m in Sources */,
-				42C6755621E34EAF001E3FF4 /* ApexFieldsViewController.m in Sources */,
 				4225E43321E08A54009D2364 /* ApexResultShipCell.m in Sources */,
 				71308AF7191E7B0E0024B2B0 /* MessageDetailItem.m in Sources */,
 				71A565D918C20F5900CDAC07 /* SearchTableAdapter.m in Sources */,

+ 0 - 17
Apex Mobile/Apex Mobile/ResultFields/ApexFieldsViewController.h

@@ -1,17 +0,0 @@
-//
-//  ApexFieldsViewController.h
-//  Apex Mobile
-//
-//  Created by Jack on 2019/1/7.
-//  Copyright © 2019 United Software Applications, Inc. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface ApexFieldsViewController : UIViewController
-
-@end
-
-NS_ASSUME_NONNULL_END

+ 0 - 123
Apex Mobile/Apex Mobile/ResultFields/ApexFieldsViewController.m

@@ -1,123 +0,0 @@
-//
-//  ApexFieldsViewController.m
-//  Apex Mobile
-//
-//  Created by Jack on 2019/1/7.
-//  Copyright © 2019 United Software Applications, Inc. All rights reserved.
-//
-
-#import "ApexFieldsViewController.h"
-#import "ApexResultFieldCell.h"
-
-typedef NS_ENUM(NSInteger, ApexFieldSectionType) {
-    ApexFieldSectionTypeStable,
-    ApexFieldSectionTypeShow,
-    ApexFieldSectionTypeHide,
-};
-
-#pragma mark - Field
-
-@interface ApexFieldValue : NSObject
-
-@property (nonatomic,copy) NSString *value;
-
-@end
-
-@implementation ApexFieldValue
-
-- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
-    
-}
-
-@end
-
-#pragma Section
-
-@interface ApexFieldSection : NSObject
-
-@property (nonatomic,assign) ApexFieldSectionType type;
-@property (nonatomic,copy) NSString *title;
-@property (nonatomic,strong) NSArray<ApexFieldValue *> *fields;
-
-@end
-
-@implementation ApexFieldSection
-
-- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
-    
-}
-
-- (void)setFields:(NSArray<ApexFieldValue *> *)fields {
-    
-    NSMutableArray *arr = [NSMutableArray array];
-    for (id field in fields) {
-        if ([field isKindOfClass:[NSString class]]) {
-            NSString *value = (NSString *)field;
-            ApexFieldValue *fieldValue = [ApexFieldValue new];
-            fieldValue.value = value;
-            [arr addObject:fieldValue];
-        }
-    }
-    _fields = arr.copy;
-}
-
-@end
-
-#pragma VC
-
-@interface ApexFieldsViewController () <UITableViewDataSource, UITableViewDelegate>
-
-@property (nonatomic,strong) IBOutlet UITableView *tableView;
-@property (nonatomic,strong) NSArray<ApexFieldSection *> *sectionArray;
-
-@end
-
-@implementation ApexFieldsViewController
-
-- (void)viewDidLoad {
-    [super viewDidLoad];
-    // Do any additional setup after loading the view.
-    
-    [self loadData];
-}
-
-- (void)loadData {
-    
-}
-
-#pragma mark - TableView
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
-    return self.sectionArray.count;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-    return self.sectionArray[section].fields.count;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-    
-    ApexResultFieldCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ApexResultFieldCell" forIndexPath:indexPath];
-    [cell setValue:self.sectionArray[indexPath.section].fields[indexPath.row].value];
-    
-    return cell;
-}
-
-- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
-    return 50.0f;
-}
-
-- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
-    
-    return nil;
-}
-
-- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
-    return 25.0f;
-}
-
-#pragma mark - Edit
-
-
-
-@end

+ 0 - 16
Apex Mobile/Apex Mobile/ResultFields/ApexResultFieldCell.h

@@ -1,16 +0,0 @@
-//
-//  ApexResultFieldCell.h
-//  Apex Mobile
-//
-//  Created by Jack on 2019/1/7.
-//  Copyright © 2019 United Software Applications, Inc. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface ApexResultFieldCell : UITableViewCell
-
-- (void)setValue:(NSString *)value;
-
-@end
-

+ 0 - 34
Apex Mobile/Apex Mobile/ResultFields/ApexResultFieldCell.m

@@ -1,34 +0,0 @@
-//
-//  ApexResultFieldCell.m
-//  Apex Mobile
-//
-//  Created by Jack on 2019/1/7.
-//  Copyright © 2019 United Software Applications, Inc. All rights reserved.
-//
-
-#import "ApexResultFieldCell.h"
-
-@interface ApexResultFieldCell ()
-
-@property (nonatomic,strong) IBOutlet UILabel *fieldLabel;
-
-@end
-
-@implementation ApexResultFieldCell
-
-- (void)awakeFromNib {
-    [super awakeFromNib];
-    // Initialization code
-}
-
-- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
-    [super setSelected:selected animated:animated];
-
-    // Configure the view for the selected state
-}
-
-- (void)setValue:(NSString *)value {
-    self.fieldLabel.text = value;
-}
-
-@end

+ 0 - 74
Apex Mobile/Apex Mobile/ResultFields/ApexResultFields.storyboard

@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--Apex Fields View Controller-->
-        <scene sceneID="fZx-Hv-qZZ">
-            <objects>
-                <viewController storyboardIdentifier="ApexFieldsViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="6ez-on-RYb" customClass="ApexFieldsViewController" sceneMemberID="viewController">
-                    <view key="view" contentMode="scaleToFill" id="433-KF-MfW">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" contentViewInsetsToSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7zl-J6-SFG">
-                                <rect key="frame" x="0.0" y="20" width="375" height="647"/>
-                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                                <prototypes>
-                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="ApexResultFieldCell" rowHeight="50" id="CdT-OW-I0f" customClass="ApexResultFieldCell">
-                                        <rect key="frame" x="0.0" y="28" width="375" height="50"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="CdT-OW-I0f" id="yux-Fg-TbI">
-                                            <rect key="frame" x="0.0" y="0.0" width="375" height="49.5"/>
-                                            <autoresizingMask key="autoresizingMask"/>
-                                            <subviews>
-                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="egc-tt-tnc">
-                                                    <rect key="frame" x="10" y="14.5" width="355" height="21"/>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                                    <nil key="textColor"/>
-                                                    <nil key="highlightedColor"/>
-                                                </label>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstAttribute="trailing" secondItem="egc-tt-tnc" secondAttribute="trailing" constant="10" id="2VG-Vf-23Z"/>
-                                                <constraint firstItem="egc-tt-tnc" firstAttribute="leading" secondItem="yux-Fg-TbI" secondAttribute="leading" constant="10" id="AkR-vP-vVN"/>
-                                                <constraint firstItem="egc-tt-tnc" firstAttribute="centerY" secondItem="yux-Fg-TbI" secondAttribute="centerY" id="SB6-sc-JGg"/>
-                                            </constraints>
-                                        </tableViewCellContentView>
-                                        <connections>
-                                            <outlet property="fieldLabel" destination="egc-tt-tnc" id="Ftb-ou-rGC"/>
-                                        </connections>
-                                    </tableViewCell>
-                                </prototypes>
-                                <connections>
-                                    <outlet property="dataSource" destination="6ez-on-RYb" id="Ypp-AC-eFS"/>
-                                    <outlet property="delegate" destination="6ez-on-RYb" id="FbW-GN-Ypp"/>
-                                </connections>
-                            </tableView>
-                        </subviews>
-                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                        <constraints>
-                            <constraint firstItem="7zl-J6-SFG" firstAttribute="leading" secondItem="D15-EH-QV3" secondAttribute="leading" id="Mpk-3P-Apv"/>
-                            <constraint firstItem="D15-EH-QV3" firstAttribute="bottom" secondItem="7zl-J6-SFG" secondAttribute="bottom" id="gbV-x9-PXU"/>
-                            <constraint firstItem="D15-EH-QV3" firstAttribute="trailing" secondItem="7zl-J6-SFG" secondAttribute="trailing" id="uPh-XF-n3h"/>
-                            <constraint firstItem="7zl-J6-SFG" firstAttribute="top" secondItem="D15-EH-QV3" secondAttribute="top" id="wCl-eg-rG8"/>
-                        </constraints>
-                        <viewLayoutGuide key="safeArea" id="D15-EH-QV3"/>
-                    </view>
-                    <connections>
-                        <outlet property="tableView" destination="7zl-J6-SFG" id="JBD-5R-E5a"/>
-                    </connections>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="ryS-aj-Tmh" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="-252" y="-94"/>
-        </scene>
-    </scenes>
-</document>