浏览代码

갤러리 이미 보낸 이미지 보더 추가

서용하 6 年之前
父节点
当前提交
b3aa989211
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2 2
      MCPlus/Adapter/PhotoCollectionViewAdapter.swift
  2. 5 0
      MCPlus/Base.lproj/Main.storyboard

+ 2 - 2
MCPlus/Adapter/PhotoCollectionViewAdapter.swift

@@ -54,9 +54,9 @@ extension PhotoCollectionViewAdapter:UICollectionViewDataSource, UICollectionVie
             return cell
         }
         if list[key]?[indexPath.row].isSended == true{
-            cell.album.image = image.alpha(0.5)
+            cell.album.borderWidth = 1.0
         }else{
-            cell.album.image = image
+            cell.album.borderWidth = 0
         }
         
         

+ 5 - 0
MCPlus/Base.lproj/Main.storyboard

@@ -761,6 +761,11 @@
                                                     <subviews>
                                                         <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="hi2-Bv-Fy6">
                                                             <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
+                                                            <userDefinedRuntimeAttributes>
+                                                                <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
+                                                                    <color key="value" red="1" green="0.95294117647058818" blue="0.54509803921568623" alpha="1" colorSpace="calibratedRGB"/>
+                                                                </userDefinedRuntimeAttribute>
+                                                            </userDefinedRuntimeAttributes>
                                                         </imageView>
                                                         <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gall_chk_default" translatesAutoresizingMaskIntoConstraints="NO" id="P8T-Tu-dyy" customClass="CheckImageButton" customModule="kunkuk" customModuleProvider="target">
                                                             <rect key="frame" x="27" y="3" width="20" height="20"/>