Commit ff746577 authored by lujunye's avatar lujunye

新增打印界面

parent 6c7252c1
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "print_img.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "print_img@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "print_img@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
\ No newline at end of file
}
{
"images" : [
{
"filename" : "dline.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "dline@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "dline@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
\ No newline at end of file
}
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.440",
"blue" : "0.678",
"green" : "0.678",
"red" : "0.714"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.440",
"blue" : "0.678",
"green" : "0.678",
"red" : "0.714"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" 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="16087"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -87,7 +88,7 @@
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Gbw-ID-cFn">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Gbw-ID-cFn">
<rect key="frame" x="126" y="29.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
......@@ -110,7 +111,7 @@
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="gDK-w4-SDz" secondAttribute="bottom" id="1Ch-VX-2Tk"/>
<constraint firstItem="5iJ-FB-kNk" firstAttribute="centerY" secondItem="65a-vB-vRu" secondAttribute="centerY" id="2hJ-Gl-U07"/>
......@@ -165,7 +166,7 @@
<constraint firstAttribute="height" constant="1" id="RQk-4A-S6r"/>
</constraints>
</view>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HlP-uj-tfd">
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HlP-uj-tfd">
<rect key="frame" x="126" y="29.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
......@@ -174,7 +175,7 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="HlP-uj-tfd" firstAttribute="leading" secondItem="Uzk-gy-02b" secondAttribute="trailing" id="8nF-q9-Anf"/>
<constraint firstItem="wwr-FR-oJl" firstAttribute="centerY" secondItem="Jgc-gv-1fU" secondAttribute="centerY" constant="-10" id="Bhu-XZ-opo"/>
......@@ -246,7 +247,7 @@
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="12" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6i-oO-TW1">
<button opaque="NO" tag="12" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6i-oO-TW1">
<rect key="frame" x="126" y="29.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
......@@ -261,7 +262,7 @@
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="p6i-oO-TW1" firstAttribute="leading" secondItem="P30-PR-K61" secondAttribute="trailing" id="2Wi-qa-BnN"/>
<constraint firstItem="Ne4-yw-bWe" firstAttribute="centerY" secondItem="ae9-Qq-iC9" secondAttribute="centerY" constant="-10" id="4K6-ub-CXe"/>
......@@ -274,7 +275,7 @@
<constraint firstItem="P30-PR-K61" firstAttribute="leading" secondItem="gIj-On-c17" secondAttribute="trailing" constant="15" id="vH1-Mi-0k5"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9NS-Ze-kBV">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9NS-Ze-kBV">
<rect key="frame" x="0.0" y="290" width="157.5" height="50"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<state key="normal" title="取消">
......@@ -285,7 +286,7 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="9NS-Ze-kBV" secondAttribute="bottom" id="3qd-lu-Gjw"/>
<constraint firstItem="Hg7-oO-Btb" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" id="4oh-fO-oqp"/>
......@@ -327,6 +328,7 @@
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="50" id="0Gu-Qn-2oC"/>
......@@ -339,10 +341,14 @@
<constraint firstAttribute="bottom" secondItem="Dzs-wG-4tL" secondAttribute="bottom" id="ubU-Ie-jvw"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="-749.27536231884062" y="77.678571428571431"/>
</view>
</objects>
<designables>
<designable name="Dzs-wG-4tL">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources>
<image name="daixuan" width="19" height="19"/>
<image name="xiadango" width="4.5" height="9"/>
......@@ -368,5 +374,8 @@
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" 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="16087"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<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"/>
......@@ -42,7 +43,7 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<button hidden="YES" opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4lb-rz-I6F">
<button hidden="YES" opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4lb-rz-I6F">
<rect key="frame" x="15" y="15" width="90" height="90"/>
<color key="backgroundColor" name="标题字颜色"/>
<constraints>
......@@ -60,7 +61,7 @@
<constraint firstAttribute="height" constant="15" id="g7a-W4-Sdg"/>
</constraints>
</imageView>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eKc-LO-OD0">
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eKc-LO-OD0">
<rect key="frame" x="85" y="-5" width="40" height="40"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
......@@ -166,9 +167,6 @@
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
......@@ -443,7 +443,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
self.navigationController?.pushViewController(vc, animated: true)
return
case 53: //销售下单-代客下单
let vc = DaiKeXiaDanGouWuViewController()
// let vc = DaiKeXiaDanGouWuViewController()
let vc = PrintListMgVc()
self.navigationController?.pushViewController(vc, animated: true)
return
case 54: //扫码下单
......
//
// PrintListMgVc.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/18.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
import Parchment
import LGButton
class PrintListMgVc: BaseViewController, PagingViewControllerDelegate {
@IBAction func print_action(_ sender: LGButton) {
let vc = viewControllers[selectIndex]
if selectIndex != 0 {
print(vc.FM_str,vc.detail_adr_str,vc.phone_str,vc.contect_str)
}
}
@IBOutlet weak var contentV: UIView!
fileprivate let cities = [
"普通订单打印",
"订货单打印模版1",
"订货单打印模版2"
]
let viewControllers = [
PrintViewController(title: "普通订单打印"),
PrintViewController(title: "订货单打印模版1"),
PrintViewController(title: "订货单打印模版2")
]
var selectIndex = 0
//头部滚动视图
weak var pagingVC : PagingViewController?
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "打印模版确认"
navbar.lineView.isHidden = true
self.view.addSubview(navbar)
SetTopFrameView(view: contentV, btmView: self.view)
let pagingViewController = PagingViewController(viewControllers: viewControllers)
pagingViewController.indicatorColor = UIColor.init(named: "蓝色字体颜色")!
pagingViewController.menuItemSize = .fixed(width: 0, height: 44*glscale)
pagingViewController.font = UIFont.systemFont(ofSize: 13)
pagingViewController.selectedFont = UIFont.systemFont(ofSize: 13)
pagingViewController.textColor = UIColor.init(named: "灰色字体颜色")!
pagingViewController.selectedTextColor = UIColor.init(named: "蓝色字体颜色")!
pagingViewController.delegate = self
pagingViewController.dataSource = self
pagingViewController.sizeDelegate = self
addChild(pagingViewController)
contentV.addSubview(pagingViewController.view)
contentV.backgroundColor = UIColor(named: "app底色")!
contentV.constrainToEdges(pagingViewController.view)
pagingViewController.didMove(toParent: self)
pagingVC = pagingViewController
// Do any additional setup after loading the view.
}
func pagingViewController(
_ pagingViewController: PagingViewController,
didScrollToItem pagingItem: PagingItem,
startingViewController: UIViewController?,
destinationViewController: UIViewController,
transitionSuccessful: Bool){
if transitionSuccessful {
guard let item = pagingItem as? PagingIndexItem else { return}
if selectIndex != item.index {
selectIndex = item.index
}
}
}
}
extension PrintListMgVc: PagingViewControllerDataSource {
func pagingViewController(_: PagingViewController, pagingItemAt index: Int) -> PagingItem {
return PagingIndexItem(index: index, title: cities[index])
}
func pagingViewController(_: PagingViewController, viewControllerAt index: Int) -> UIViewController {
return viewControllers[index]
}
func numberOfViewControllers(in pagingViewController: PagingViewController) -> Int {
return cities.count
}
}
extension PrintListMgVc: PagingViewControllerSizeDelegate {
func pagingViewController(_ pagingViewController: PagingViewController, widthForPagingItem pagingItem: PagingItem, isSelected: Bool) -> CGFloat {
return ScreenWidth/2.5
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" 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="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.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="PrintListMgVc" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="contentV" destination="csb-7S-KV5" id="Fc6-4G-C1V"/>
<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="csb-7S-KV5">
<rect key="frame" x="0.0" y="44" width="414" height="774"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zM2-Kx-oSf" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="818" width="414" height="78"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<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>
<connections>
<action selector="print_action:" destination="-1" eventType="touchUpInside" id="67m-Yy-CoN"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认打印" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GVM-RK-kDz">
<rect key="frame" x="0.0" y="818" width="414" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="wxD-Yh-Wjc"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="17"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="zM2-Kx-oSf" firstAttribute="top" secondItem="GVM-RK-kDz" secondAttribute="top" id="0P0-Ez-gs1"/>
<constraint firstAttribute="bottom" secondItem="zM2-Kx-oSf" secondAttribute="bottom" id="B6p-Rh-gxc"/>
<constraint firstItem="csb-7S-KV5" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="Fh2-iu-CDI"/>
<constraint firstAttribute="trailing" secondItem="zM2-Kx-oSf" secondAttribute="trailing" id="OrY-GG-L0N"/>
<constraint firstItem="zM2-Kx-oSf" firstAttribute="top" secondItem="csb-7S-KV5" secondAttribute="bottom" id="Pd0-cj-brN"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="GVM-RK-kDz" secondAttribute="bottom" id="QcQ-qf-j5O"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="csb-7S-KV5" secondAttribute="trailing" id="oKD-7Y-ct2"/>
<constraint firstItem="GVM-RK-kDz" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="pkT-c9-E3j"/>
<constraint firstItem="zM2-Kx-oSf" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="uq6-A7-dME"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="GVM-RK-kDz" secondAttribute="trailing" id="vIl-Ne-3nm"/>
<constraint firstItem="csb-7S-KV5" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="x6x-nq-5bq"/>
</constraints>
<point key="canvasLocation" x="140.57971014492756" y="96.428571428571431"/>
</view>
</objects>
<designables>
<designable name="zM2-Kx-oSf">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_0" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.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="PrintViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="list_view" destination="n3p-Lj-xAT" id="Ryz-96-Vm3"/>
<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="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="n3p-Lj-xAT">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<connections>
<outlet property="dataSource" destination="-1" id="PLy-nD-YXX"/>
<outlet property="delegate" destination="-1" id="DdK-nR-n0e"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="n3p-Lj-xAT" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="BrT-ne-5rP"/>
<constraint firstItem="n3p-Lj-xAT" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="LAb-1Q-KeE"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="n3p-Lj-xAT" secondAttribute="bottom" id="PUd-g6-SNw"/>
<constraint firstAttribute="trailing" secondItem="n3p-Lj-xAT" secondAttribute="trailing" id="Zj9-eD-7Sc"/>
</constraints>
<point key="canvasLocation" x="-200.625" y="85.563380281690144"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// print_bottom_cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/18.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol print_bottom_cellDelegate {
func print_bottom_cell_select_place_action()
func print_bottom_cell_text_respose(tag:Int,text:String)
}
class print_bottom_cell: UITableViewCell {
var delegate:print_bottom_cellDelegate?
@IBOutlet weak var adr_lbl: UILabel!
@IBOutlet weak var connect_tf: UITextField!
@IBOutlet weak var phone_tf: UITextField!
@IBOutlet weak var payer_tf: UITextField!
@IBOutlet weak var adr_tf: UITextField!
@IBAction func adr_select(_ sender: UIButton) {
delegate?.print_bottom_cell_select_place_action()
}
@IBOutlet weak var top_bg: UIView!
@IBOutlet weak var btm_bg: UIView!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
top_bg.layer.masksToBounds = false
btm_bg.layer.masksToBounds = false
// Initialization code
payer_tf.tag = 0
adr_tf.tag = 1
phone_tf.tag = 2
connect_tf.tag = 3
payer_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
adr_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
phone_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
connect_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
}
@objc func textChange(tf:UITextField){
delegate?.print_bottom_cell_text_respose(tag: tf.tag, text: tf.text!)
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// print_top_btn_cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/18.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class print_top_btn_cell: 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
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" 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="17703"/>
<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" id="KGk-i7-Jjw" customClass="print_top_btn_cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="215"/>
<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="375" height="215"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="print_img" translatesAutoresizingMaskIntoConstraints="NO" id="QHd-cH-MIc">
<rect key="frame" x="8" y="15" width="359" height="200"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="QHd-cH-MIc" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="FUk-gl-YsT"/>
<constraint firstAttribute="bottom" secondItem="QHd-cH-MIc" secondAttribute="bottom" id="Uv9-t3-eXj"/>
<constraint firstItem="QHd-cH-MIc" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="8" id="byN-Lt-J5G"/>
<constraint firstAttribute="trailing" secondItem="QHd-cH-MIc" secondAttribute="trailing" constant="8" id="mcq-4h-Ads"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="141" y="89"/>
</tableViewCell>
</objects>
<resources>
<image name="print_img" width="355" height="210"/>
</resources>
</document>
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