Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
coderZsq committed Sep 24, 2019
1 parent f161019 commit 68bccaf
Show file tree
Hide file tree
Showing 14 changed files with 308 additions and 2 deletions.
26 changes: 26 additions & 0 deletions SQManagement/SQManagement.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
objects = {

/* Begin PBXBuildFile section */
149AC8852339B92F009C88AB /* SQAddConnectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC8842339B92F009C88AB /* SQAddConnectionViewController.m */; };
149AC8882339BEE6009C88AB /* SQProfileHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */; };
149AC88A2339BEF1009C88AB /* SQProfileHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */; };
149AC88E2339C146009C88AB /* SQConnectionPropertyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */; };
149AC88F2339C146009C88AB /* SQConnectionPropertyCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */; };
14D633B0233763FF004FD86A /* SQAuthorizationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D633AF233763FF004FD86A /* SQAuthorizationManager.m */; };
14D633B52337674F004FD86A /* SQSearchInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D633B22337674F004FD86A /* SQSearchInputView.m */; };
14D633B62337674F004FD86A /* SQSearchInputView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 14D633B42337674F004FD86A /* SQSearchInputView.xib */; };
Expand All @@ -30,6 +35,14 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
149AC8832339B92F009C88AB /* SQAddConnectionViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQAddConnectionViewController.h; sourceTree = "<group>"; };
149AC8842339B92F009C88AB /* SQAddConnectionViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQAddConnectionViewController.m; sourceTree = "<group>"; };
149AC8862339BEE6009C88AB /* SQProfileHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQProfileHeaderView.h; sourceTree = "<group>"; };
149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQProfileHeaderView.m; sourceTree = "<group>"; };
149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SQProfileHeaderView.xib; sourceTree = "<group>"; };
149AC88B2339C146009C88AB /* SQConnectionPropertyCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQConnectionPropertyCell.h; sourceTree = "<group>"; };
149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQConnectionPropertyCell.m; sourceTree = "<group>"; };
149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SQConnectionPropertyCell.xib; sourceTree = "<group>"; };
14D633AE233763FF004FD86A /* SQAuthorizationManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQAuthorizationManager.h; sourceTree = "<group>"; };
14D633AF233763FF004FD86A /* SQAuthorizationManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQAuthorizationManager.m; sourceTree = "<group>"; };
14D633B22337674F004FD86A /* SQSearchInputView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQSearchInputView.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -98,6 +111,12 @@
14DC37C823374CFB00867A92 /* SQH1TitleView.h */,
14DC37CA23374CFB00867A92 /* SQH1TitleView.m */,
14DC37C923374CFB00867A92 /* SQH1TitleView.xib */,
149AC8862339BEE6009C88AB /* SQProfileHeaderView.h */,
149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */,
149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */,
149AC88B2339C146009C88AB /* SQConnectionPropertyCell.h */,
149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */,
149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */,
);
path = Coms;
sourceTree = "<group>";
Expand Down Expand Up @@ -137,6 +156,8 @@
children = (
14DC37CD23374DC600867A92 /* SQConnectionsViewController.h */,
14DC37CE23374DC600867A92 /* SQConnectionsViewController.m */,
149AC8832339B92F009C88AB /* SQAddConnectionViewController.h */,
149AC8842339B92F009C88AB /* SQAddConnectionViewController.m */,
);
path = UI;
sourceTree = "<group>";
Expand Down Expand Up @@ -257,6 +278,8 @@
14E97DD82335014C004FC20D /* LaunchScreen.storyboard in Resources */,
14E97DD52335014C004FC20D /* Assets.xcassets in Resources */,
14E97DD02335014B004FC20D /* Main.storyboard in Resources */,
149AC88A2339BEF1009C88AB /* SQProfileHeaderView.xib in Resources */,
149AC88F2339C146009C88AB /* SQConnectionPropertyCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -298,12 +321,15 @@
14DC37E72337509E00867A92 /* SQNavigationController.m in Sources */,
14DC37DF23374FA500867A92 /* UIViewController+SQExtension.m in Sources */,
14E97DC72335014B004FC20D /* AppDelegate.m in Sources */,
149AC88E2339C146009C88AB /* SQConnectionPropertyCell.m in Sources */,
14E97DD32335014B004FC20D /* SQManagement.xcdatamodeld in Sources */,
14DC37CC23374CFB00867A92 /* SQH1TitleView.m in Sources */,
14D633B0233763FF004FD86A /* SQAuthorizationManager.m in Sources */,
149AC8882339BEE6009C88AB /* SQProfileHeaderView.m in Sources */,
14DC37E023374FA500867A92 /* NSObject+SQExtension.m in Sources */,
14DC37CF23374DC600867A92 /* SQConnectionsViewController.m in Sources */,
14D633B52337674F004FD86A /* SQSearchInputView.m in Sources */,
149AC8852339B92F009C88AB /* SQAddConnectionViewController.m in Sources */,
14E97DCA2335014B004FC20D /* SceneDelegate.m in Sources */,
14DC37E223374FA500867A92 /* UIImage+SQExtension.m in Sources */,
);
Expand Down
55 changes: 54 additions & 1 deletion SQManagement/SQManagement/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="uRP-gN-aQg">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -20,7 +21,11 @@
</connections>
</tableView>
<navigationItem key="navigationItem" id="l4b-sm-2Uz">
<barButtonItem key="rightBarButtonItem" systemItem="add" id="Fn5-Wy-4Tf"/>
<barButtonItem key="rightBarButtonItem" systemItem="add" id="Fn5-Wy-4Tf">
<connections>
<segue destination="2ef-i0-gcb" kind="showDetail" id="wMs-PL-enr"/>
</connections>
</barButtonItem>
</navigationItem>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Y1M-54-ST4" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
Expand All @@ -45,5 +50,53 @@
</objects>
<point key="canvasLocation" x="213.04347826086959" y="220.98214285714286"/>
</scene>
<!--Add Connection View Controller-->
<scene sceneID="lcI-xu-gSS">
<objects>
<tableViewController id="Vc5-ha-Xna" customClass="SQAddConnectionViewController" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" id="wwX-G7-be9">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<connections>
<outlet property="dataSource" destination="Vc5-ha-Xna" id="Tk7-85-uoO"/>
<outlet property="delegate" destination="Vc5-ha-Xna" id="RYT-nj-HC7"/>
</connections>
</tableView>
<navigationItem key="navigationItem" id="Nns-H4-WZ8">
<barButtonItem key="leftBarButtonItem" title="取消" id="R4a-ex-d6Y">
<connections>
<action selector="cancelButtonClick:" destination="Vc5-ha-Xna" id="KyL-BW-0we"/>
</connections>
</barButtonItem>
<barButtonItem key="rightBarButtonItem" title="完成" id="fkl-dW-kZg">
<connections>
<action selector="doneButtonClick:" destination="Vc5-ha-Xna" id="mFc-Vp-hXa"/>
</connections>
</barButtonItem>
</navigationItem>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="eTB-bg-kbW" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2963.768115942029" y="220.98214285714286"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="vDH-oL-Qck">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="2ef-i0-gcb" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="C7z-p3-HK0">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="Vc5-ha-Xna" kind="relationship" relationship="rootViewController" id="fz7-Uc-Rfk"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="NqX-mb-Pr1" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2053.6231884057975" y="220.98214285714286"/>
</scene>
</scenes>
</document>
19 changes: 19 additions & 0 deletions SQManagement/SQManagement/Coms/SQConnectionPropertyCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// SQConnectionPropertyCell.h
// SQManagement
//
// Created by 朱双泉 on 2019/9/24.
// Copyright © 2019 Castie!. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface SQConnectionPropertyCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

NS_ASSUME_NONNULL_END
13 changes: 13 additions & 0 deletions SQManagement/SQManagement/Coms/SQConnectionPropertyCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// SQConnectionPropertyCell.m
// SQManagement
//
// Created by 朱双泉 on 2019/9/24.
// Copyright © 2019 Castie!. All rights reserved.
//

#import "SQConnectionPropertyCell.h"

@implementation SQConnectionPropertyCell

@end
39 changes: 39 additions & 0 deletions SQManagement/SQManagement/Coms/SQConnectionPropertyCell.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<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"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="SQConnectionPropertyCell" id="KGk-i7-Jjw" customClass="SQConnectionPropertyCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="HFh-tr-qYF">
<rect key="frame" x="16" y="11.5" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="HFh-tr-qYF" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="036-b9-NNG"/>
<constraint firstItem="HFh-tr-qYF" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="s6g-Mj-xfN"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<connections>
<outlet property="titleLabel" destination="HFh-tr-qYF" id="JeS-4O-0q8"/>
</connections>
<point key="canvasLocation" x="75" y="52"/>
</tableViewCell>
</objects>
</document>
19 changes: 19 additions & 0 deletions SQManagement/SQManagement/Coms/SQProfileHeaderView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// SQProfileHeaderView.h
// SQManagement
//
// Created by 朱双泉 on 2019/9/24.
// Copyright © 2019 Castie!. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface SQProfileHeaderView : UIView

+ (instancetype)headerView;

@end

NS_ASSUME_NONNULL_END
18 changes: 18 additions & 0 deletions SQManagement/SQManagement/Coms/SQProfileHeaderView.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// SQProfileHeaderView.m
// SQManagement
//
// Created by 朱双泉 on 2019/9/24.
// Copyright © 2019 Castie!. All rights reserved.
//

#import "SQProfileHeaderView.h"

@implementation SQProfileHeaderView

+ (instancetype)headerView {
SQProfileHeaderView *headerView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:nil options:nil].firstObject;
return headerView;
}

@end
36 changes: 36 additions & 0 deletions SQManagement/SQManagement/Coms/SQProfileHeaderView.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="400" height="100"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="o1g-8a-GJh">
<rect key="frame" x="160" y="10" width="80" height="80"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="80" id="6oK-aD-8Wl"/>
<constraint firstAttribute="width" constant="80" id="IUs-Wf-eZO"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="o1g-8a-GJh" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="Fnt-RZ-etF"/>
<constraint firstItem="o1g-8a-GJh" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="b50-63-IWt"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="-1.4492753623188408" y="-16.071428571428569"/>
</view>
</objects>
</document>
10 changes: 10 additions & 0 deletions SQManagement/SQManagement/Coms/SQSearchInputView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" returnKeyType="search" enablesReturnKeyAutomatically="YES"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NSw-kd-gFd">
<rect key="frame" x="0.0" y="43" width="414" height="1"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="cdI-Ab-apB"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="NSw-kd-gFd" secondAttribute="trailing" id="2LQ-pL-nVZ"/>
<constraint firstAttribute="bottom" secondItem="NSw-kd-gFd" secondAttribute="bottom" id="Ugc-eX-xgl"/>
<constraint firstItem="8dJ-T3-HJU" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="1" id="bVb-n6-cua"/>
<constraint firstItem="8dJ-T3-HJU" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="15" id="kaI-t1-cub"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="8dJ-T3-HJU" secondAttribute="trailing" constant="15" id="n0D-47-VRY"/>
<constraint firstItem="NSw-kd-gFd" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="wzm-2L-RFQ"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
Expand Down
Loading

0 comments on commit 68bccaf

Please sign in to comment.