Commit 7e58d97b authored by 刘俊宏's avatar 刘俊宏

完成弹窗UI

parent 9473a865
......@@ -402,6 +402,10 @@
F9023F722449ACA800DD5A63 /* TitleAndSwitchCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9023F702449ACA800DD5A63 /* TitleAndSwitchCell.xib */; };
F905A7D5246CF57700E3A74D /* Parchment in Frameworks */ = {isa = PBXBuildFile; productRef = F905A7D4246CF57700E3A74D /* Parchment */; };
F905A7D8246CF82400E3A74D /* SwipeCellKit in Frameworks */ = {isa = PBXBuildFile; productRef = F905A7D7246CF82400E3A74D /* SwipeCellKit */; };
F90D37E825528D72001F3AED /* GLAlertTbAddView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F90D37E725528D72001F3AED /* GLAlertTbAddView.xib */; };
F90D37F02552931E001F3AED /* GLAlertTbAddView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F90D37EF2552931E001F3AED /* GLAlertTbAddView.swift */; };
F90D37F925529984001F3AED /* GLAlertTbAddViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F90D37F725529984001F3AED /* GLAlertTbAddViewCell.swift */; };
F90D37FA25529984001F3AED /* GLAlertTbAddViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F90D37F825529984001F3AED /* GLAlertTbAddViewCell.xib */; };
F90F881E24C8233D0050EF02 /* CityListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F90F881C24C8233D0050EF02 /* CityListViewController.swift */; };
F90F881F24C8233D0050EF02 /* CityListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F90F881D24C8233D0050EF02 /* CityListViewController.xib */; };
F90F882324C841280050EF02 /* UITableViewIndexView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F90F882224C841280050EF02 /* UITableViewIndexView.swift */; };
......@@ -588,6 +592,8 @@
F970B3702551280B0026F9D5 /* TimeShowDownView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F970B36F2551280B0026F9D5 /* TimeShowDownView.xib */; };
F970B3752551281A0026F9D5 /* TimeShowDownView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F970B3742551281A0026F9D5 /* TimeShowDownView.swift */; };
F971D7B3248B6432007F1619 /* address_new.json in Resources */ = {isa = PBXBuildFile; fileRef = F971D7B2248B6432007F1619 /* address_new.json */; };
F976255C2552B392001EC5B0 /* DistributorSettingAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F976255B2552B392001EC5B0 /* DistributorSettingAlertView.swift */; };
F97E73322552A22000A11F98 /* DistributorSettingAlertView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F97E73312552A22000A11F98 /* DistributorSettingAlertView.xib */; };
F993C66E24CADE2400493CC7 /* WayBillStautsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F993C66C24CADE2400493CC7 /* WayBillStautsTableViewCell.swift */; };
F993C66F24CADE2400493CC7 /* WayBillStautsTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F993C66D24CADE2400493CC7 /* WayBillStautsTableViewCell.xib */; };
F9956B1C2463D941001A617D /* WorkSelectTimeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9956B1B2463D941001A617D /* WorkSelectTimeView.xib */; };
......@@ -1060,6 +1066,10 @@
F9023F6C2449A9B100DD5A63 /* TitleAndTFCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleAndTFCell.xib; sourceTree = "<group>"; };
F9023F6F2449ACA800DD5A63 /* TitleAndSwitchCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndSwitchCell.swift; sourceTree = "<group>"; };
F9023F702449ACA800DD5A63 /* TitleAndSwitchCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleAndSwitchCell.xib; sourceTree = "<group>"; };
F90D37E725528D72001F3AED /* GLAlertTbAddView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GLAlertTbAddView.xib; sourceTree = "<group>"; };
F90D37EF2552931E001F3AED /* GLAlertTbAddView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GLAlertTbAddView.swift; sourceTree = "<group>"; };
F90D37F725529984001F3AED /* GLAlertTbAddViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GLAlertTbAddViewCell.swift; sourceTree = "<group>"; };
F90D37F825529984001F3AED /* GLAlertTbAddViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GLAlertTbAddViewCell.xib; sourceTree = "<group>"; };
F90F881C24C8233D0050EF02 /* CityListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CityListViewController.swift; sourceTree = "<group>"; };
F90F881D24C8233D0050EF02 /* CityListViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CityListViewController.xib; sourceTree = "<group>"; };
F90F882224C841280050EF02 /* UITableViewIndexView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITableViewIndexView.swift; sourceTree = "<group>"; };
......@@ -1294,6 +1304,8 @@
F970B36F2551280B0026F9D5 /* TimeShowDownView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TimeShowDownView.xib; sourceTree = "<group>"; };
F970B3742551281A0026F9D5 /* TimeShowDownView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeShowDownView.swift; sourceTree = "<group>"; };
F971D7B2248B6432007F1619 /* address_new.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = address_new.json; sourceTree = "<group>"; };
F976255B2552B392001EC5B0 /* DistributorSettingAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DistributorSettingAlertView.swift; sourceTree = "<group>"; };
F97E73312552A22000A11F98 /* DistributorSettingAlertView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DistributorSettingAlertView.xib; sourceTree = "<group>"; };
F993C66C24CADE2400493CC7 /* WayBillStautsTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WayBillStautsTableViewCell.swift; sourceTree = "<group>"; };
F993C66D24CADE2400493CC7 /* WayBillStautsTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WayBillStautsTableViewCell.xib; sourceTree = "<group>"; };
F9956B1B2463D941001A617D /* WorkSelectTimeView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WorkSelectTimeView.xib; sourceTree = "<group>"; };
......@@ -2952,6 +2964,12 @@
F9697245248F88BB0010D39B /* GeliAltetCodeView.xib */,
E07C2FF924ECCD4D0043649B /* GLMessageAlertView.swift */,
E07C2FFB24ECCD590043649B /* GLMessageAlertView.xib */,
F90D37EF2552931E001F3AED /* GLAlertTbAddView.swift */,
F90D37E725528D72001F3AED /* GLAlertTbAddView.xib */,
F90D37F725529984001F3AED /* GLAlertTbAddViewCell.swift */,
F90D37F825529984001F3AED /* GLAlertTbAddViewCell.xib */,
F976255B2552B392001EC5B0 /* DistributorSettingAlertView.swift */,
F97E73312552A22000A11F98 /* DistributorSettingAlertView.xib */,
);
path = AlertView;
sourceTree = "<group>";
......@@ -3415,6 +3433,7 @@
F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */,
E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */,
E00B0B1C24629E99006DC846 /* SJMapCell.xib in Resources */,
F90D37FA25529984001F3AED /* GLAlertTbAddViewCell.xib in Resources */,
E00CDE742474BBB60018AEF8 /* EPViewController.xib in Resources */,
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */,
E042F735245274F200CDFA12 /* YunDanLieBiaoCell.xib in Resources */,
......@@ -3446,6 +3465,7 @@
E042F74524529B8500CDFA12 /* JiTuoWuXinXiView.xib in Resources */,
E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */,
E0A409CD2464026B00CFF109 /* SecondCell.xib in Resources */,
F90D37E825528D72001F3AED /* GLAlertTbAddView.xib in Resources */,
F95A9EEA24558B8800867849 /* ShowAlGoodsViewController.xib in Resources */,
E030DF3C248651A5002764D3 /* NewRKVc.xib in Resources */,
F96E48A424CA79D4000AB8D4 /* WayBillAddressItemCell.xib in Resources */,
......@@ -3496,6 +3516,7 @@
E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */,
F9D44E8924CBC6A400FBD8DB /* ToAndFormSelectViewController.xib in Resources */,
E0C4F4A8244EC82A00CC7E2F /* TitleAndBtnCell.xib in Resources */,
F97E73322552A22000A11F98 /* DistributorSettingAlertView.xib in Resources */,
E02FD9F72455790800E10E27 /* DiZhiGuanLiCell.xib in Resources */,
F9C2F6F9254FE14900516E00 /* DistributorSettingViewController.xib in Resources */,
E0BE8AA5245AA31400E80134 /* YingFuZhangKuanXQViewController.xib in Resources */,
......@@ -3636,6 +3657,7 @@
F924B39424971E2000A913CD /* CusSalesStatisticsModel.swift in Sources */,
E0E8ABFD246E359700E3BB54 /* GuiGeModel.swift in Sources */,
F950FDEA2451920200C40530 /* DIYCalendarCell.swift in Sources */,
F90D37F02552931E001F3AED /* GLAlertTbAddView.swift in Sources */,
F9697242248F6F7C0010D39B /* VendorListModel.swift in Sources */,
E0AD92F92550FD1500D82C17 /* GYS_FX_SearchViewController.swift in Sources */,
F950FDE224518B9500C40530 /* FSCalendarCalculator.m in Sources */,
......@@ -3722,6 +3744,7 @@
E0D197D5244860B1002B080C /* BlueToothCell.swift in Sources */,
F961D27724503F51007FBE70 /* OrderSelectMoreView.swift in Sources */,
F933F6C62452C68B00189561 /* PKHUDAssets.swift in Sources */,
F976255C2552B392001EC5B0 /* DistributorSettingAlertView.swift in Sources */,
F95D9B522448530E0080D6E3 /* GeliAlertView.swift in Sources */,
E002465224A8697B00049DBC /* TitleAndTFBtnCell.swift in Sources */,
E0B5308624728FB600FFCC15 /* WarehouseInterface.swift in Sources */,
......@@ -3870,6 +3893,7 @@
F950FDB32451820D00C40530 /* TitleAndSelCalendarView.swift in Sources */,
F95A9EED24558E3D00867849 /* ChangeGoodsPriceVC.swift in Sources */,
F961153324E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift in Sources */,
F90D37F925529984001F3AED /* GLAlertTbAddViewCell.swift in Sources */,
E00E48BE2457BAC700F16545 /* XuanZeShangPinCell.swift in Sources */,
E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */,
F94A314F24625AFA00FEC38E /* GoodsUpDataModel.swift in Sources */,
......
//
// DistributorSettingAlertView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/4.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class DistributorSettingAlertView: UIView {
var contentView:UIView!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" 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="17126"/>
<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"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<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="bBm-Fm-d1f" userLabel="blackView">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="r0f-xY-DJ2" userLabel="tishiView">
<rect key="frame" x="59.5" y="298" width="295" height="300"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xBK-zg-doj">
<rect key="frame" x="0.0" y="39" width="295" height="211"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f0i-Vm-UAy">
<rect key="frame" x="165" y="15" width="67" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" 不参与" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f2v-Db-np2">
<rect key="frame" x="86" y="15" width="54" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" 参与" image="yuxuan">
<color key="titleColor" name="标题字颜色"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="参与分销:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9SL-t2-xg8">
<rect key="frame" x="15" y="15" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="分销价格:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jKn-y5-ixC">
<rect key="frame" x="15" y="68" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder=" 请输入数值" textAlignment="natural" minimumFontSize="13" translatesAutoresizingMaskIntoConstraints="NO" id="hmc-1R-guq">
<rect key="frame" x="86" y="60" width="90" height="35"/>
<color key="backgroundColor" name="搜索框背景色"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="hZN-gK-v31"/>
<constraint firstAttribute="height" constant="35" id="nom-np-xG2"/>
</constraints>
<color key="textColor" name="灰色字体颜色"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="元" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="acM-Ba-Vki">
<rect key="frame" x="186" y="171" width="13" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="佣金设置:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o0f-Uf-X61">
<rect key="frame" x="15" y="121" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qLO-Gc-A3W">
<rect key="frame" x="86" y="121" width="80" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" 佣金比例" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
</button>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder=" 请输入数值" textAlignment="natural" minimumFontSize="13" translatesAutoresizingMaskIntoConstraints="NO" id="Ysc-L7-nMy">
<rect key="frame" x="86" y="155" width="90" height="35"/>
<color key="backgroundColor" name="搜索框背景色"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="9kq-Xp-az1"/>
<constraint firstAttribute="height" constant="35" id="ewx-IV-6LD"/>
</constraints>
<color key="textColor" name="灰色字体颜色"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="元" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NX8-9C-0fE">
<rect key="frame" x="186" y="76.5" width="13" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="puW-3j-GZy">
<rect key="frame" x="181" y="121" width="67" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" 绝对值" image="yuxuan">
<color key="titleColor" name="标题字颜色"/>
</state>
</button>
</subviews>
<color key="backgroundColor" name="白色背景色"/>
<constraints>
<constraint firstItem="f0i-Vm-UAy" firstAttribute="centerY" secondItem="9SL-t2-xg8" secondAttribute="centerY" id="1BQ-zG-s62"/>
<constraint firstItem="NX8-9C-0fE" firstAttribute="leading" secondItem="hmc-1R-guq" secondAttribute="trailing" constant="10" id="310-ha-ida"/>
<constraint firstItem="jKn-y5-ixC" firstAttribute="top" secondItem="9SL-t2-xg8" secondAttribute="bottom" constant="34" id="765-h9-jN3"/>
<constraint firstItem="acM-Ba-Vki" firstAttribute="leading" secondItem="Ysc-L7-nMy" secondAttribute="trailing" constant="10" id="7qr-Vt-NUk"/>
<constraint firstItem="f2v-Db-np2" firstAttribute="leading" secondItem="9SL-t2-xg8" secondAttribute="trailing" constant="15" id="8Ez-1B-g3G"/>
<constraint firstItem="puW-3j-GZy" firstAttribute="leading" secondItem="qLO-Gc-A3W" secondAttribute="trailing" constant="15" id="8yk-4Y-QKJ"/>
<constraint firstItem="9SL-t2-xg8" firstAttribute="leading" secondItem="xBK-zg-doj" secondAttribute="leading" constant="15" id="AS7-cq-WnJ"/>
<constraint firstItem="puW-3j-GZy" firstAttribute="centerY" secondItem="o0f-Uf-X61" secondAttribute="centerY" id="D4M-rj-Luz"/>
<constraint firstItem="o0f-Uf-X61" firstAttribute="top" secondItem="jKn-y5-ixC" secondAttribute="bottom" constant="34" id="FcO-vb-t8a"/>
<constraint firstItem="9SL-t2-xg8" firstAttribute="top" secondItem="xBK-zg-doj" secondAttribute="top" constant="15" id="ID1-xU-I44"/>
<constraint firstItem="acM-Ba-Vki" firstAttribute="bottom" secondItem="Ysc-L7-nMy" secondAttribute="bottom" id="JNs-V5-tiN"/>
<constraint firstItem="hmc-1R-guq" firstAttribute="centerY" secondItem="jKn-y5-ixC" secondAttribute="centerY" id="Jv6-D0-t7A"/>
<constraint firstItem="o0f-Uf-X61" firstAttribute="leading" secondItem="xBK-zg-doj" secondAttribute="leading" constant="15" id="L7R-fU-rcO"/>
<constraint firstItem="qLO-Gc-A3W" firstAttribute="leading" secondItem="o0f-Uf-X61" secondAttribute="trailing" constant="15" id="Orv-1C-dcV"/>
<constraint firstItem="hmc-1R-guq" firstAttribute="leading" secondItem="jKn-y5-ixC" secondAttribute="trailing" constant="15" id="VPd-Lb-Ogv"/>
<constraint firstItem="Ysc-L7-nMy" firstAttribute="leading" secondItem="hmc-1R-guq" secondAttribute="leading" id="Zwa-28-Egt"/>
<constraint firstItem="NX8-9C-0fE" firstAttribute="bottom" secondItem="hmc-1R-guq" secondAttribute="bottom" id="ch8-To-233"/>
<constraint firstItem="Ysc-L7-nMy" firstAttribute="top" secondItem="qLO-Gc-A3W" secondAttribute="bottom" constant="15" id="eLA-n9-Wzc"/>
<constraint firstItem="f2v-Db-np2" firstAttribute="centerY" secondItem="9SL-t2-xg8" secondAttribute="centerY" id="f3X-gx-xEz"/>
<constraint firstItem="jKn-y5-ixC" firstAttribute="leading" secondItem="xBK-zg-doj" secondAttribute="leading" constant="15" id="nSW-iI-EmW"/>
<constraint firstItem="qLO-Gc-A3W" firstAttribute="centerY" secondItem="o0f-Uf-X61" secondAttribute="centerY" id="pxP-3E-XFK"/>
<constraint firstItem="f0i-Vm-UAy" firstAttribute="leading" secondItem="f2v-Db-np2" secondAttribute="trailing" constant="25" id="qvK-eL-hk6"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="N4C-9w-dcG">
<rect key="frame" x="0.0" y="0.0" width="295" height="39"/>
<attributedString key="attributedText">
<fragment content="设置分销商品">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" size="15" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oZY-rb-E7W">
<rect key="frame" x="1" y="249" width="293" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="cVS-G6-xMU"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DO8-fD-1X5">
<rect key="frame" x="147" y="249" width="1" height="50"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="CIq-V3-FRh"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ovH-Pj-051">
<rect key="frame" x="0.0" y="250" width="147" height="50"/>
<color key="tintColor" name="灰色字体颜色"/>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="取消">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6cp-jK-IGN">
<rect key="frame" x="148" y="250" width="147" height="50"/>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="确定">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
</state>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3vM-n2-ei0">
<rect key="frame" x="0.0" y="38" width="295" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="TtD-mR-YJm"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="N4C-9w-dcG" secondAttribute="trailing" id="5tg-67-zbh"/>
<constraint firstItem="6cp-jK-IGN" firstAttribute="leading" secondItem="DO8-fD-1X5" secondAttribute="trailing" id="A39-NF-ztg"/>
<constraint firstItem="DO8-fD-1X5" firstAttribute="top" secondItem="oZY-rb-E7W" secondAttribute="top" id="AMp-SV-NBh"/>
<constraint firstItem="ovH-Pj-051" firstAttribute="leading" secondItem="r0f-xY-DJ2" secondAttribute="leading" id="ARD-uU-FfO"/>
<constraint firstItem="6cp-jK-IGN" firstAttribute="leading" secondItem="DO8-fD-1X5" secondAttribute="trailing" id="AvF-SN-DUC"/>
<constraint firstItem="DO8-fD-1X5" firstAttribute="leading" secondItem="ovH-Pj-051" secondAttribute="trailing" id="BU2-z9-W8N"/>
<constraint firstAttribute="height" constant="300" id="COR-sP-gvF"/>
<constraint firstItem="xBK-zg-doj" firstAttribute="top" secondItem="N4C-9w-dcG" secondAttribute="bottom" id="DHp-KP-LaM"/>
<constraint firstAttribute="trailing" secondItem="oZY-rb-E7W" secondAttribute="trailing" constant="1" id="Dlt-Fv-Srf"/>
<constraint firstItem="ovH-Pj-051" firstAttribute="top" secondItem="xBK-zg-doj" secondAttribute="bottom" id="L9w-JN-QcM"/>
<constraint firstAttribute="bottom" secondItem="oZY-rb-E7W" secondAttribute="bottom" constant="50" id="Nn5-tP-feI"/>
<constraint firstItem="3vM-n2-ei0" firstAttribute="leading" secondItem="r0f-xY-DJ2" secondAttribute="leading" id="Ogb-h1-u8f"/>
<constraint firstAttribute="trailing" secondItem="6cp-jK-IGN" secondAttribute="trailing" id="PGI-as-XKH"/>
<constraint firstAttribute="width" constant="295" id="Q9J-VR-rKe"/>
<constraint firstItem="6cp-jK-IGN" firstAttribute="top" secondItem="oZY-rb-E7W" secondAttribute="bottom" id="Qc5-n8-kwg"/>
<constraint firstAttribute="trailing" secondItem="3vM-n2-ei0" secondAttribute="trailing" id="Vpo-Tu-yf7"/>
<constraint firstItem="N4C-9w-dcG" firstAttribute="bottom" secondItem="3vM-n2-ei0" secondAttribute="bottom" id="anI-4v-DlI"/>
<constraint firstAttribute="trailing" secondItem="xBK-zg-doj" secondAttribute="trailing" id="bOZ-i7-3ul"/>
<constraint firstAttribute="bottom" secondItem="ovH-Pj-051" secondAttribute="bottom" id="e2X-LM-2wA"/>
<constraint firstItem="ovH-Pj-051" firstAttribute="top" secondItem="oZY-rb-E7W" secondAttribute="bottom" id="eZB-hK-GEF"/>
<constraint firstItem="oZY-rb-E7W" firstAttribute="leading" secondItem="r0f-xY-DJ2" secondAttribute="leading" constant="1" id="ecL-VK-xe6"/>
<constraint firstItem="3vM-n2-ei0" firstAttribute="top" secondItem="r0f-xY-DJ2" secondAttribute="top" constant="38" id="iNv-wn-qpz"/>
<constraint firstItem="N4C-9w-dcG" firstAttribute="top" secondItem="r0f-xY-DJ2" secondAttribute="top" id="it1-gK-uIg"/>
<constraint firstAttribute="bottom" secondItem="6cp-jK-IGN" secondAttribute="bottom" id="j9H-co-DX8"/>
<constraint firstItem="N4C-9w-dcG" firstAttribute="leading" secondItem="r0f-xY-DJ2" secondAttribute="leading" id="lD2-M8-jp9"/>
<constraint firstAttribute="bottom" secondItem="DO8-fD-1X5" secondAttribute="bottom" constant="1" id="lsS-hm-Fax"/>
<constraint firstItem="xBK-zg-doj" firstAttribute="leading" secondItem="r0f-xY-DJ2" secondAttribute="leading" id="qeH-8G-0il"/>
<constraint firstItem="DO8-fD-1X5" firstAttribute="centerX" secondItem="r0f-xY-DJ2" secondAttribute="centerX" id="rHH-NY-mVJ"/>
<constraint firstItem="DO8-fD-1X5" firstAttribute="leading" secondItem="ovH-Pj-051" secondAttribute="trailing" id="w6M-fj-Q3o"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" name="提示视图背景色"/>
<constraints>
<constraint firstItem="r0f-xY-DJ2" firstAttribute="centerX" secondItem="bBm-Fm-d1f" secondAttribute="centerX" id="Isj-2d-mKH"/>
<constraint firstItem="r0f-xY-DJ2" firstAttribute="centerY" secondItem="bBm-Fm-d1f" secondAttribute="centerY" id="lUo-hw-aLu"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="bBm-Fm-d1f" secondAttribute="trailing" id="2Ka-Xv-Idm"/>
<constraint firstItem="bBm-Fm-d1f" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="6Rw-DV-bsX"/>
<constraint firstAttribute="bottom" secondItem="bBm-Fm-d1f" secondAttribute="bottom" id="Dv1-9X-kYJ"/>
<constraint firstItem="bBm-Fm-d1f" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="pnZ-J2-7fU"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-23.188405797101453" y="120.53571428571428"/>
</view>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<image name="yuxuan" width="19" height="19"/>
<namedColor name="提示视图背景色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="搜索框背景色">
<color red="0.9137254901960784" green="0.90588235294117647" blue="0.92941176470588238" 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.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>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// GLAlertTbAddView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/4.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class GLAlertTbAddView: UIView {
var contentView:UIView!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" 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="17126"/>
<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="GLAlertTbAddView" customModule="TestClass" customModuleProvider="target"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<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="Mqd-Qa-wVl" userLabel="blackView">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6RK-yc-lGB" userLabel="tishiView">
<rect key="frame" x="59.5" y="365.5" width="295" height="165"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oAF-vL-09z">
<rect key="frame" x="0.0" y="0.0" width="295" height="39"/>
<attributedString key="attributedText">
<fragment content="新增分销商">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" size="15" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BNp-8B-KwV">
<rect key="frame" x="1" y="114" width="293" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="CZM-dq-ZlH"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WMp-8d-It8">
<rect key="frame" x="147" y="114" width="1" height="50"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="fgO-SC-mmb"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UYr-wl-9KU">
<rect key="frame" x="0.0" y="115" width="147" height="50"/>
<color key="tintColor" name="灰色字体颜色"/>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="取消">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dGv-gS-5Ge">
<rect key="frame" x="148" y="115" width="147" height="50"/>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="确定">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
</state>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pQa-v3-eKL">
<rect key="frame" x="0.0" y="38" width="295" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="i2F-m0-3GZ"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="ai3-h9-DLi">
<rect key="frame" x="0.0" y="39" width="295" height="75"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</tableView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="width" constant="295" id="0vx-2m-aa9"/>
<constraint firstItem="oAF-vL-09z" firstAttribute="bottom" secondItem="pQa-v3-eKL" secondAttribute="bottom" id="6AE-hN-9uq"/>
<constraint firstAttribute="trailing" secondItem="dGv-gS-5Ge" secondAttribute="trailing" id="6FK-Yz-PMj"/>
<constraint firstAttribute="height" constant="165" id="9E4-JF-1gj"/>
<constraint firstItem="WMp-8d-It8" firstAttribute="top" secondItem="BNp-8B-KwV" secondAttribute="top" id="C6N-RO-cKx"/>
<constraint firstItem="oAF-vL-09z" firstAttribute="leading" secondItem="6RK-yc-lGB" secondAttribute="leading" id="Dsk-AU-nbK"/>
<constraint firstItem="dGv-gS-5Ge" firstAttribute="top" secondItem="BNp-8B-KwV" secondAttribute="bottom" id="GkH-GP-7sf"/>
<constraint firstItem="ai3-h9-DLi" firstAttribute="top" secondItem="oAF-vL-09z" secondAttribute="bottom" id="HdN-Wu-Urh"/>
<constraint firstItem="pQa-v3-eKL" firstAttribute="top" secondItem="6RK-yc-lGB" secondAttribute="top" constant="38" id="IiT-PB-lcf"/>
<constraint firstItem="pQa-v3-eKL" firstAttribute="leading" secondItem="6RK-yc-lGB" secondAttribute="leading" id="Kf1-NN-M3Z"/>
<constraint firstAttribute="trailing" secondItem="pQa-v3-eKL" secondAttribute="trailing" id="LUl-PO-9VY"/>
<constraint firstItem="BNp-8B-KwV" firstAttribute="leading" secondItem="6RK-yc-lGB" secondAttribute="leading" constant="1" id="Pwy-Mq-Am9"/>
<constraint firstItem="BNp-8B-KwV" firstAttribute="top" secondItem="ai3-h9-DLi" secondAttribute="bottom" id="RcK-4a-HcQ"/>
<constraint firstItem="WMp-8d-It8" firstAttribute="leading" secondItem="UYr-wl-9KU" secondAttribute="trailing" id="XD9-E4-0b8"/>
<constraint firstAttribute="trailing" secondItem="ai3-h9-DLi" secondAttribute="trailing" id="ZBf-Kq-TQ1"/>
<constraint firstAttribute="bottom" secondItem="WMp-8d-It8" secondAttribute="bottom" constant="1" id="ZC9-KY-1M6"/>
<constraint firstItem="oAF-vL-09z" firstAttribute="top" secondItem="6RK-yc-lGB" secondAttribute="top" id="Zbx-wy-kJF"/>
<constraint firstAttribute="bottom" secondItem="dGv-gS-5Ge" secondAttribute="bottom" id="a3m-2o-B7R"/>
<constraint firstItem="dGv-gS-5Ge" firstAttribute="leading" secondItem="WMp-8d-It8" secondAttribute="trailing" id="bbe-ir-h8b"/>
<constraint firstAttribute="bottom" secondItem="BNp-8B-KwV" secondAttribute="bottom" constant="50" id="h4K-UX-k1B"/>
<constraint firstAttribute="trailing" secondItem="BNp-8B-KwV" secondAttribute="trailing" constant="1" id="hye-91-Jzh"/>
<constraint firstAttribute="trailing" secondItem="oAF-vL-09z" secondAttribute="trailing" id="lb4-Xn-aSF"/>
<constraint firstItem="WMp-8d-It8" firstAttribute="centerX" secondItem="6RK-yc-lGB" secondAttribute="centerX" id="nkl-v6-svR"/>
<constraint firstItem="ai3-h9-DLi" firstAttribute="leading" secondItem="6RK-yc-lGB" secondAttribute="leading" id="oh2-X4-VnH"/>
<constraint firstItem="UYr-wl-9KU" firstAttribute="top" secondItem="BNp-8B-KwV" secondAttribute="bottom" id="rY5-Hp-I1h"/>
<constraint firstItem="UYr-wl-9KU" firstAttribute="leading" secondItem="6RK-yc-lGB" secondAttribute="leading" id="rmz-nD-btl"/>
<constraint firstAttribute="bottom" secondItem="UYr-wl-9KU" secondAttribute="bottom" id="upD-T7-iKR"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="0V2-BU-sF9">
<rect key="frame" x="0.0" y="560.5" width="414" height="340.5"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</tableView>
</subviews>
<color key="backgroundColor" name="提示视图背景色"/>
<constraints>
<constraint firstItem="0V2-BU-sF9" firstAttribute="leading" secondItem="Mqd-Qa-wVl" secondAttribute="leading" id="5fc-HL-N7q"/>
<constraint firstAttribute="trailing" secondItem="0V2-BU-sF9" secondAttribute="trailing" id="T8r-7I-oaa"/>
<constraint firstItem="6RK-yc-lGB" firstAttribute="centerY" secondItem="Mqd-Qa-wVl" secondAttribute="centerY" id="hmz-a9-ddE"/>
<constraint firstItem="0V2-BU-sF9" firstAttribute="top" secondItem="6RK-yc-lGB" secondAttribute="bottom" constant="30" id="k9O-NX-iZq"/>
<constraint firstItem="6RK-yc-lGB" firstAttribute="centerX" secondItem="Mqd-Qa-wVl" secondAttribute="centerX" id="oUQ-yW-coe"/>
<constraint firstAttribute="bottom" secondItem="0V2-BU-sF9" secondAttribute="bottom" constant="-5" id="rlj-MU-VWI"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="Mqd-Qa-wVl" secondAttribute="bottom" id="6ge-Zp-DAW"/>
<constraint firstItem="Mqd-Qa-wVl" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="lpi-EN-WKa"/>
<constraint firstItem="Mqd-Qa-wVl" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="tPN-OW-Vh0"/>
<constraint firstAttribute="trailing" secondItem="Mqd-Qa-wVl" secondAttribute="trailing" id="vvS-Gm-Z6E"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="140.57971014492756" y="93.75"/>
</view>
</objects>
<resources>
<namedColor name="提示视图背景色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="0.5" 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>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// GLAlertTbAddViewCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/4.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class GLAlertTbAddViewCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// 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="17156" 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="17126"/>
<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"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="GLAlertTbAddViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="352" 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="352" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="店铺1:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5fi-Fa-DeI">
<rect key="frame" x="10" y="12.5" width="35" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TVf-Jn-LWN">
<rect key="frame" x="50" y="4.5" width="246" height="35"/>
<color key="backgroundColor" name="搜索框背景色"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="Bxn-PF-cgm"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IHB-UU-Spa">
<rect key="frame" x="296" y="0.0" width="56" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="56" id="rqL-BP-gyN"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="新增">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请选择/输入店铺名称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9yi-HN-uNk">
<rect key="frame" x="60" y="12.5" width="123.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="3" translatesAutoresizingMaskIntoConstraints="NO" id="lFI-Fa-62J">
<rect key="frame" x="281.5" y="17.5" width="4.5" height="9"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="9yi-HN-uNk" firstAttribute="leading" secondItem="TVf-Jn-LWN" secondAttribute="leading" constant="10" id="LpE-bV-fmO"/>
<constraint firstItem="lFI-Fa-62J" firstAttribute="trailing" secondItem="TVf-Jn-LWN" secondAttribute="trailing" constant="-10" id="RpS-zL-UPz"/>
<constraint firstItem="TVf-Jn-LWN" firstAttribute="leading" secondItem="5fi-Fa-DeI" secondAttribute="trailing" constant="5" id="Ruo-Cz-lDy"/>
<constraint firstAttribute="bottom" secondItem="IHB-UU-Spa" secondAttribute="bottom" id="Uka-HS-0XG"/>
<constraint firstItem="lFI-Fa-62J" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="YJz-Ru-sYO"/>
<constraint firstItem="9yi-HN-uNk" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="aJE-5J-MoT"/>
<constraint firstItem="IHB-UU-Spa" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="ehX-9K-E2g"/>
<constraint firstAttribute="trailing" secondItem="IHB-UU-Spa" secondAttribute="trailing" id="eqD-ut-ZvQ"/>
<constraint firstItem="IHB-UU-Spa" firstAttribute="leading" secondItem="TVf-Jn-LWN" secondAttribute="trailing" id="fmY-3G-Mwh"/>
<constraint firstItem="5fi-Fa-DeI" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="oQc-lY-nuD"/>
<constraint firstItem="TVf-Jn-LWN" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="omq-O6-ot3"/>
<constraint firstItem="9yi-HN-uNk" firstAttribute="trailing" relation="lessThanOrEqual" secondItem="TVf-Jn-LWN" secondAttribute="trailing" constant="-20" id="shC-j8-O1P"/>
<constraint firstItem="IHB-UU-Spa" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="vcO-FU-f4x"/>
<constraint firstItem="5fi-Fa-DeI" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="wVH-5k-RDb"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="162.31884057971016" y="126.5625"/>
</tableViewCell>
</objects>
<resources>
<image name="3" width="4.5" height="9"/>
<namedColor name="搜索框背景色">
<color red="0.9137254901960784" green="0.90588235294117647" blue="0.92941176470588238" 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.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" 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>
</resources>
</document>
......@@ -3,7 +3,7 @@
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17125"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<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"/>
......@@ -205,7 +205,7 @@
<constraint firstItem="HfM-JI-5kt" firstAttribute="top" secondItem="2Yp-84-pY1" secondAttribute="bottom" constant="10" id="xPP-Qm-9ZD"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="HfM-JI-5kt" secondAttribute="trailing" constant="10" id="zvR-s1-LiO"/>
</constraints>
<point key="canvasLocation" x="-62.318840579710148" y="123.88392857142857"/>
<point key="canvasLocation" x="-671" y="50"/>
</view>
</objects>
<designables>
......
......@@ -187,6 +187,8 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
cell.itemNameLbl.isHidden = false
cell.itemImgV.isHidden = false
let rowModel = oftenArr![indexPath.row]
//带背景常用app_icon_bg
if rowModel.app_icon == nil {
cell.itemImgV.image = UIImage.init(named: "worktest1")
......
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