Commit 7d0e3df1 authored by lujunye's avatar lujunye

出库

parent 51a605af
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E00D85DA244561FD00F5F816"
BuildableName = "GeliBusinessPlatform.app"
BlueprintName = "GeliBusinessPlatform"
ReferencedContainer = "container:GeliBusinessPlatform.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E00D85F0244561FE00F5F816"
BuildableName = "GeliBusinessPlatformTests.xctest"
BlueprintName = "GeliBusinessPlatformTests"
ReferencedContainer = "container:GeliBusinessPlatform.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E00D85FB244561FE00F5F816"
BuildableName = "GeliBusinessPlatformUITests.xctest"
BlueprintName = "GeliBusinessPlatformUITests"
ReferencedContainer = "container:GeliBusinessPlatform.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E00D85DA244561FD00F5F816"
BuildableName = "GeliBusinessPlatform.app"
BlueprintName = "GeliBusinessPlatform"
ReferencedContainer = "container:GeliBusinessPlatform.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E00D85DA244561FD00F5F816"
BuildableName = "GeliBusinessPlatform.app"
BlueprintName = "GeliBusinessPlatform"
ReferencedContainer = "container:GeliBusinessPlatform.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
...@@ -10,5 +10,23 @@ ...@@ -10,5 +10,23 @@
<integer>22</integer> <integer>22</integer>
</dict> </dict>
</dict> </dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>E00D85DA244561FD00F5F816</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E00D85F0244561FE00F5F816</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E00D85FB244561FE00F5F816</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict> </dict>
</plist> </plist>
...@@ -16,14 +16,14 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -16,14 +16,14 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
var sceneC: UIScene? var sceneC: UIScene?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
sceneC = scene sceneC = scene
if UserToken == nil { if UserToken == nil {
addLoginVc(isAgain: false) addLoginVc(isAgain: false)
}else{ }else{
addTabBarVcs(isAgain: false) addTabBarVcs(isAgain: false)
} }
} }
//MARK:--成功登录并反馈 //MARK:--成功登录并反馈
func successLogin() { func successLogin() {
...@@ -35,9 +35,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -35,9 +35,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
} }
//MARK:--loginVC //MARK:--loginVC
func addLoginVc (isAgain:Bool){ func addLoginVc (isAgain:Bool){
let vc = LoginViewController() // let vc = LoginViewController()
vc.delegate = self // vc.delegate = self
let contentView = vc // let contentView = vc
let contentView = ChuKuViewController()
if let windowScene = sceneC as? UIWindowScene { if let windowScene = sceneC as? UIWindowScene {
if isAgain { if isAgain {
...@@ -54,7 +56,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -54,7 +56,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
self.window = window self.window = window
window.makeKeyAndVisible() window.makeKeyAndVisible()
} }
} }
} }
//MARK:--tabbarVCs //MARK:--tabbarVCs
...@@ -66,7 +68,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -66,7 +68,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
let img = imageWithColor(UIColor.white) let img = imageWithColor(UIColor.white)
tabBarController.tabBar.backgroundImage = img tabBarController.tabBar.backgroundImage = img
NotificationCenter.default.addObserver(self, selector: #selector(popLogout), name: NSNotification.Name(rawValue: "logout"), object: nil) NotificationCenter.default.addObserver(self, selector: #selector(popLogout), name: NSNotification.Name(rawValue: "logout"), object: nil)
let v1 = OrderListViewController() let v1 = OrderListViewController()
let v2 = GoodsManageListVC() let v2 = GoodsManageListVC()
let v3 = LoginViewController() let v3 = LoginViewController()
...@@ -79,11 +82,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -79,11 +82,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
v4.tabBarItem = ESTabBarItem.init(ExampleBouncesContentView(), title: "仓库管理", image: UIImage(named: "daixuan"), selectedImage: UIImage(named: "kuwei")) v4.tabBarItem = ESTabBarItem.init(ExampleBouncesContentView(), title: "仓库管理", image: UIImage(named: "daixuan"), selectedImage: UIImage(named: "kuwei"))
v5.tabBarItem = ESTabBarItem.init(ExampleBouncesContentView(), title: "个人中心", image: UIImage(named: "daixuan"), selectedImage: UIImage(named: "kuwei")) v5.tabBarItem = ESTabBarItem.init(ExampleBouncesContentView(), title: "个人中心", image: UIImage(named: "daixuan"), selectedImage: UIImage(named: "kuwei"))
// Create the SwiftUI view that provides the window contents.
tabBarController.viewControllers = [v1, v2, v3, v4, v5] tabBarController.viewControllers = [v1, v2, v3, v4, v5]
let contentView = tabBarController let contentView = tabBarController
if let windowScene = sceneC as? UIWindowScene { if let windowScene = sceneC as? UIWindowScene {
if isAgain { if isAgain {
let transtition = CATransition() let transtition = CATransition()
transtition.duration = 0.5 transtition.duration = 0.5
...@@ -93,12 +98,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -93,12 +98,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
UIApplication.shared.keyWindow?.rootViewController = rootV UIApplication.shared.keyWindow?.rootViewController = rootV
}else{ }else{
let window = UIWindow(windowScene: windowScene) let window = UIWindow(windowScene: windowScene)
let rootV = NavViewController(rootViewController: contentView) let rootV = NavViewController(rootViewController: contentView)
window.rootViewController = rootV; window.rootViewController = rootV;
self.window = window self.window = window
window.makeKeyAndVisible() window.makeKeyAndVisible()
} }
} }
if let tabBarItem = v2.tabBarItem as? ESTabBarItem { if let tabBarItem = v2.tabBarItem as? ESTabBarItem {
...@@ -107,7 +112,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -107,7 +112,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
} }
} }
} }
func sceneDidDisconnect(_ scene: UIScene) { func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system. // Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded. // This occurs shortly after the scene enters the background, or when its session is discarded.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
@objc protocol TilteAndTextViewCellDelegate { @objc protocol TilteAndTextViewCellDelegate {
@objc optional func TilteAndTextViewCellResponseStr(str:String) @objc optional func TilteAndTextViewCellResponseStr(str:String,cell:TilteAndTextViewCell)
} }
class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{ class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{
var delegate:TilteAndTextViewCellDelegate? var delegate:TilteAndTextViewCellDelegate?
...@@ -18,7 +18,7 @@ class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{ ...@@ -18,7 +18,7 @@ class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{
}else{ }else{
holderLbl.isHidden = false holderLbl.isHidden = false
} }
delegate?.TilteAndTextViewCellResponseStr?(str: textView.text) delegate?.TilteAndTextViewCellResponseStr?(str: textView.text,cell:self)
} }
@IBOutlet weak var textView: UITextView! @IBOutlet weak var textView: UITextView!
@IBOutlet weak var titleLbl: UILabel! @IBOutlet weak var titleLbl: UILabel!
...@@ -26,7 +26,7 @@ class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{ ...@@ -26,7 +26,7 @@ class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{
override func awakeFromNib() { override func awakeFromNib() {
super.awakeFromNib() super.awakeFromNib()
self.selectionStyle = .none self.selectionStyle = .none
textView.delegate = self
// Initialization code // Initialization code
} }
......
...@@ -44,9 +44,6 @@ ...@@ -44,9 +44,6 @@
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/> <fontDescription key="fontDescription" type="system" pointSize="11"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/> <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
<connections>
<outlet property="delegate" destination="-1" id="aTe-hf-kHA"/>
</connections>
</textView> </textView>
</subviews> </subviews>
<color key="backgroundColor" name="搜索框背景色"/> <color key="backgroundColor" name="搜索框背景色"/>
......
//
// ChuKuViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class ChuKuViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndTFCellDelegate,UITextViewDelegate,TilteAndTextViewCellDelegate{
let titleArr = ["出库类型","出库数量","备注"]
@IBOutlet weak var lietView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "出库"
self.view.addSubview(navbar)
lietView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.equalTo(0)
make.height.equalTo(273.5*glscale)
}
lietView.separatorStyle = .none
lietView.isScrollEnabled = false
lietView.register(UINib(nibName: "TilteAndTextViewCell", bundle: nil), forCellReuseIdentifier: "TilteAndTextView")
lietView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTF")
lietView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtn")
// TilteAndTextViewCell TitleAndTFCell TitleAndBtnCell
}
@IBAction func submitAction(_ sender: Any) {
}
//MARK: - CELL DELEGATE
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
switch indexPath.row {
case 0,1:return 49*glscale
default:return 173.5*glscale
}
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.row {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtn") as! TitleAndBtnCell
cell.contentLbl.text = "请选择出库类型"
cell.nameLbl.text = titleArr[indexPath.row]
return cell
case 1:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTF") as! TitleAndTFCell
cell.textTF.placeholder = "不得大于库存"
cell.textTF.font = UIFont.systemFont(ofSize: 13)
cell.textTF.textAlignment = .center
cell.textTF.layer.cornerRadius = 2
cell.textTF.layer.masksToBounds = true
cell.textTF.layer.borderWidth = 1
cell.textTF.layer.borderColor = UIColor(named: "灰色字体颜色")?.cgColor
cell.delegate = self
cell.textTF.snp.updateConstraints { (make) in
make.centerY.equalTo(cell.snp_centerY)
make.width.equalTo(120*glscale)
make.height.equalTo(32*glscale)
make.right.equalTo(-15)
}
cell.textTF.keyboardType = .numberPad
cell.nameLbl.text = titleArr[indexPath.row]
return cell
default:
let cell = tableView.dequeueReusableCell(withIdentifier: "TilteAndTextView") as! TilteAndTextViewCell
cell.holderLbl.text = "申请备注(非必填)"
cell.titleLbl.text = titleArr[indexPath.row]
cell.delegate = self
return cell
}
}
func TilteAndTextViewCellResponseStr(str: String, cell: TilteAndTextViewCell) {
print(str)
}
func textFieldContent(content: String, cell: TitleAndTFCell) {
print(content)
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<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" customClass="ChuKuViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="lietView" destination="531-6f-4dw" id="DlP-Ob-DI9"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mDd-zx-lFP" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="mA2-8V-3NE">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
<userDefinedRuntimeAttribute type="string" keyPath="titleString" value="确认"/>
<userDefinedRuntimeAttribute type="number" keyPath="titleFontSize">
<real key="value" value="17"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="S4W-gw-eLe"/>
</connections>
</view>
<view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fYg-7a-X8o" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="862" width="414" height="40"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="YaC-A2-dnh"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="531-6f-4dw">
<rect key="frame" x="0.0" y="44" width="414" height="273.5"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="273.5" id="aeE-Ol-ZZG">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<connections>
<outlet property="dataSource" destination="-1" id="oJS-ob-sjf"/>
<outlet property="delegate" destination="-1" id="Vtd-EC-P2O"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstItem="fYg-7a-X8o" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Aqd-Q2-BQQ"/>
<constraint firstItem="fYg-7a-X8o" firstAttribute="top" secondItem="mDd-zx-lFP" secondAttribute="bottom" id="CIy-t9-cTS"/>
<constraint firstItem="531-6f-4dw" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="L1F-xZ-Wff"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="mDd-zx-lFP" secondAttribute="bottom" id="TtK-Ba-1ZM"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="mDd-zx-lFP" secondAttribute="trailing" id="VPQ-dt-NuM"/>
<constraint firstItem="mDd-zx-lFP" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="fe4-zX-CeD"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="531-6f-4dw" secondAttribute="trailing" id="ulJ-Gq-S9B"/>
<constraint firstItem="531-6f-4dw" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="vVp-nf-aOV"/>
<constraint firstAttribute="trailing" secondItem="fYg-7a-X8o" secondAttribute="trailing" id="xgt-21-fOs"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="121.875"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// KuCunShangPinCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class KuCunShangPinCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// KuCunShangPinViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class KuCunShangPinViewController: BaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
<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" customClass="KuCunShangPinViewController" customModuleProvider="target">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
</view>
</objects>
</document>
//
// KuCunXiangQingCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class KuCunXiangQingCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment