Commit 0bcd8656 authored by lujunye's avatar lujunye

替换图标

parent bc0b6bfb
{ {
"info" : { "info" : {
"version" : 1, "author" : "xcode",
"author" : "xcode" "version" : 1
} }
} }
\ No newline at end of file
{ {
"images" : [ "images" : [
{ {
"filename" : "tab_btn_dingdan_hig.png", "filename" : "tab_btn_dingdao_hig.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "tab_btn_dingdan_hig@2x.png", "filename" : "tab_btn_dingdao_hig@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "tab_btn_dingdan_hig@3x.png", "filename" : "tab_btn_dingdao_hig@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
...@@ -67,7 +67,7 @@ class ExampleBasicContentView: ESTabBarItemContentView { ...@@ -67,7 +67,7 @@ class ExampleBasicContentView: ESTabBarItemContentView {
//MARK:--颜色转换为图片 //MARK:--颜色转换为图片
func imageWithColor(_ color: UIColor) -> UIImage { func imageWithColor(_ color: UIColor) -> UIImage {
let rect = CGRect(x: 0, y: 0, width: 375, height: 50) let rect = CGRect(x: 0, y: 0, width: ScreenWidth, height: 50)
UIGraphicsBeginImageContext(rect.size) UIGraphicsBeginImageContext(rect.size)
let context = UIGraphicsGetCurrentContext() let context = UIGraphicsGetCurrentContext()
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5qb-dP-6Vx"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5qb-dP-6Vx">
<rect key="frame" x="0.0" y="44" width="414" height="106"/> <rect key="frame" x="0.0" y="44" width="414" height="106"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="n76-uS-p91"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="n76-uS-p91">
<rect key="frame" x="0.0" y="26" width="414" height="13"/> <rect key="frame" x="0.0" y="26" width="414" height="13"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="13" id="WZo-mg-GRY"/> <constraint firstAttribute="height" constant="13" id="WZo-mg-GRY"/>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<color key="textColor" name="多选按钮字体颜色"/> <color key="textColor" name="多选按钮字体颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Jj-t6-3Th"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Jj-t6-3Th">
<rect key="frame" x="0.0" y="54" width="414" height="23"/> <rect key="frame" x="0.0" y="54" width="414" height="23"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="23" id="9YA-BB-liY"/> <constraint firstAttribute="height" constant="23" id="9YA-BB-liY"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?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"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <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="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
</label> </label>
</subviews> </subviews>
</view> </view>
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
<gestureRecognizers/> <gestureRecognizers/>
<constraints> <constraints>
<constraint firstAttribute="trailing" secondItem="pg3-lh-kp9" secondAttribute="trailing" id="74N-EK-MFS"/> <constraint firstAttribute="trailing" secondItem="pg3-lh-kp9" secondAttribute="trailing" id="74N-EK-MFS"/>
...@@ -66,7 +67,6 @@ ...@@ -66,7 +67,6 @@
<constraint firstItem="pg3-lh-kp9" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="skh-sW-fEO"/> <constraint firstItem="pg3-lh-kp9" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="skh-sW-fEO"/>
<constraint firstAttribute="bottom" secondItem="nZJ-9s-cJg" secondAttribute="bottom" constant="7" id="v6j-Yr-2wF"/> <constraint firstAttribute="bottom" secondItem="nZJ-9s-cJg" secondAttribute="bottom" constant="7" id="v6j-Yr-2wF"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
<size key="customSize" width="100" height="69"/> <size key="customSize" width="100" height="69"/>
<connections> <connections>
<outlet property="bgImV" destination="pg3-lh-kp9" id="usC-7f-KnW"/> <outlet property="bgImV" destination="pg3-lh-kp9" id="usC-7f-KnW"/>
......
...@@ -124,8 +124,8 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle ...@@ -124,8 +124,8 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
}else{ }else{
if isOften { if isOften {
cell.itemImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.app_icon!), placeholderImage: UIImage.init(named: "worktest1")) cell.itemImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.app_icon_bg!), placeholderImage: UIImage.init(named: "worktest1"))
}else{ }else{
cell.itemImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.app_icon!), placeholderImage: UIImage.init(named: "worktest1")) cell.itemImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.app_icon!), placeholderImage: 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