Skip to content

Commit 17bd84e

Browse files
committed
项目设置 - 项目图片上添加编辑按钮
1 parent 756f8aa commit 17bd84e

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,11 @@
12031203
B152ED94209453F3004A6E8A /* taskboard_add_page_unselected@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B152ED8C209453F2004A6E8A /* taskboard_add_page_unselected@3x.png */; };
12041204
B152ED95209453F3004A6E8A /* taskboard_normal_page_unselected@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B152ED8D209453F2004A6E8A /* taskboard_normal_page_unselected@3x.png */; };
12051205
B152ED96209453F3004A6E8A /* taskboard_normal_page_unselected@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B152ED8E209453F2004A6E8A /* taskboard_normal_page_unselected@2x.png */; };
1206+
B15C98AD20D39C4B00DDA425 /* NewProject.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B94C1B6A1AC945FB0000C271 /* NewProject.storyboard */; };
1207+
B15C98B020D39CA200DDA425 /* project_icon_edit@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B15C98AE20D39CA100DDA425 /* project_icon_edit@2x.png */; };
1208+
B15C98B120D39CA200DDA425 /* project_icon_edit@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B15C98AE20D39CA100DDA425 /* project_icon_edit@2x.png */; };
1209+
B15C98B220D39CA200DDA425 /* project_icon_edit@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B15C98AF20D39CA200DDA425 /* project_icon_edit@3x.png */; };
1210+
B15C98B320D39CA200DDA425 /* project_icon_edit@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B15C98AF20D39CA200DDA425 /* project_icon_edit@3x.png */; };
12061211
B16E6CA020C0FDB50076026D /* logo_coding_top@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B16E6C9F20C0FDB50076026D /* logo_coding_top@3x.png */; };
12071212
B16E6CA120C0FDB50076026D /* logo_coding_top@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B16E6C9F20C0FDB50076026D /* logo_coding_top@3x.png */; };
12081213
B16E6CA320C102B60076026D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8EA6CFC519E240C40076D59C /* Images.xcassets */; };
@@ -5017,6 +5022,8 @@
50175022
B152ED8C209453F2004A6E8A /* taskboard_add_page_unselected@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskboard_add_page_unselected@3x.png"; sourceTree = "<group>"; };
50185023
B152ED8D209453F2004A6E8A /* taskboard_normal_page_unselected@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskboard_normal_page_unselected@3x.png"; sourceTree = "<group>"; };
50195024
B152ED8E209453F2004A6E8A /* taskboard_normal_page_unselected@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskboard_normal_page_unselected@2x.png"; sourceTree = "<group>"; };
5025+
B15C98AE20D39CA100DDA425 /* project_icon_edit@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "project_icon_edit@2x.png"; sourceTree = "<group>"; };
5026+
B15C98AF20D39CA200DDA425 /* project_icon_edit@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "project_icon_edit@3x.png"; sourceTree = "<group>"; };
50205027
B16E6C9F20C0FDB50076026D /* logo_coding_top@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "logo_coding_top@3x.png"; sourceTree = "<group>"; };
50215028
B16E6CA220C0FFFF0076026D /* Coding_Enterprise_iOS.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Coding_Enterprise_iOS.entitlements; sourceTree = "<group>"; };
50225029
B16E6CA420C13BA10076026D /* btn_dismiss@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "btn_dismiss@3x.png"; sourceTree = "<group>"; };
@@ -7873,6 +7880,8 @@
78737880
B16E6CA420C13BA10076026D /* btn_dismiss@3x.png */,
78747881
B16E6CEC20C147490076026D /* team_bg@2x.png */,
78757882
B16E6CEB20C147480076026D /* team_bg@3x.png */,
7883+
B15C98AE20D39CA100DDA425 /* project_icon_edit@2x.png */,
7884+
B15C98AF20D39CA200DDA425 /* project_icon_edit@3x.png */,
78767885
);
78777886
path = Images;
78787887
sourceTree = "<group>";
@@ -9962,6 +9971,7 @@
99629971
B14689B41EE100B200B01371 /* vip_3_30@2x.png in Resources */,
99639972
B1280D01200EFEA400DEDF78 /* PR_del_label@3x.png in Resources */,
99649973
4E9423EC1E69401B0095F1CD /* blankpage_image_Team@2x.png in Resources */,
9974+
B15C98B220D39CA200DDA425 /* project_icon_edit@3x.png in Resources */,
99659975
B16E6D8520C148E50076026D /* intro_tip_3@3x.png in Resources */,
99669976
B16E6D0920C147770076026D /* team_info_sup@2x.png in Resources */,
99679977
B17CC31520731E950077C956 /* icon_release_tag_blue@2x.png in Resources */,
@@ -10020,6 +10030,7 @@
1002010030
B1C8718F1EB1E608003DACF0 /* icon_add_comment@3x.png in Resources */,
1002110031
4EACB4431A2C45300097ABB3 /* button_file_download_enable@2x.png in Resources */,
1002210032
8E97CE691A0A3424006F9AD7 /* keyboard_page_selected@2x.png in Resources */,
10033+
B15C98B020D39CA200DDA425 /* project_icon_edit@2x.png in Resources */,
1002310034
B1C8716C1EB182C7003DACF0 /* taskPriority3@3x.png in Resources */,
1002410035
B177F5C92060E6B1006709C2 /* code.html in Resources */,
1002510036
B16EEF08208DDBB6005ABFD5 /* timeline_icon_read@3x.png in Resources */,
@@ -10337,6 +10348,7 @@
1033710348
B1D5EEA220BC06CB00983FB6 /* file_changeType_MODIFY@3x.png in Resources */,
1033810349
B1D5EEA320BC06CB00983FB6 /* icon_file_apk@2x.png in Resources */,
1033910350
B1D5EEA420BC06CB00983FB6 /* n_btn_followed_both@2x.png in Resources */,
10351+
B15C98AD20D39C4B00DDA425 /* NewProject.storyboard in Resources */,
1034010352
B1D5EEA520BC06CB00983FB6 /* messageSystem@2x.png in Resources */,
1034110353
B1D5EEA620BC06CB00983FB6 /* PR_del_watcher@2x.png in Resources */,
1034210354
B1D5EEA720BC06CB00983FB6 /* taskWatchers@3x.png in Resources */,
@@ -10649,6 +10661,7 @@
1064910661
B1D5EFC920BC06CB00983FB6 /* EAPayViewController.xib in Resources */,
1065010662
B1D5EFCA20BC06CB00983FB6 /* calendar_0xA1CF64@3x.png in Resources */,
1065110663
B16E6CE620C145BF0076026D /* quick_menu_icon_2fa@3x.png in Resources */,
10664+
B15C98B120D39CA200DDA425 /* project_icon_edit@2x.png in Resources */,
1065210665
B1D5EFCB20BC06CB00983FB6 /* user_info_file@2x.png in Resources */,
1065310666
B1D5EFCC20BC06CB00983FB6 /* ShopSwitchCell.xib in Resources */,
1065410667
B1D5EFCD20BC06CB00983FB6 /* cell_arrow_left@2x.png in Resources */,
@@ -11217,6 +11230,7 @@
1121711230
B1D5F1F320BC06CB00983FB6 /* search_Nav@2x.png in Resources */,
1121811231
B1D5F1F420BC06CB00983FB6 /* terminal_box_selected@3x.png in Resources */,
1121911232
B1D5F1F520BC06CB00983FB6 /* twoFABtn_Nav@2x.png in Resources */,
11233+
B15C98B320D39CA200DDA425 /* project_icon_edit@3x.png in Resources */,
1122011234
B1D5F1F620BC06CB00983FB6 /* project_selected@3x.png in Resources */,
1122111235
B1D5F1F720BC06CB00983FB6 /* task_activity_icon_MergeRequestBean@3x.png in Resources */,
1122211236
B1D5F1F820BC06CB00983FB6 /* tweet_selected@3x.png in Resources */,

Coding_iOS/Controllers/NewProject/NewProject.storyboard

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
@@ -35,6 +35,10 @@
3535
<constraint firstAttribute="width" constant="55" id="zTt-I0-XFj"/>
3636
</constraints>
3737
</imageView>
38+
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="project_icon_edit.png" translatesAutoresizingMaskIntoConstraints="NO" id="iBD-hx-i4S">
39+
<rect key="frame" x="15" y="15" width="55" height="55"/>
40+
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.20000000000000001" colorSpace="calibratedRGB"/>
41+
</imageView>
3842
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="项目名称" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="OKO-zA-KVd">
3943
<rect key="frame" x="82" y="32" width="247" height="21"/>
4044
<constraints>
@@ -51,9 +55,13 @@
5155
<constraints>
5256
<constraint firstItem="OKO-zA-KVd" firstAttribute="top" secondItem="AGo-cn-Hlv" secondAttribute="topMargin" constant="21" id="JWP-7R-Tx1"/>
5357
<constraint firstItem="gEV-Jy-c1F" firstAttribute="leading" secondItem="AGo-cn-Hlv" secondAttribute="leading" constant="15" id="Jz7-er-YCV"/>
58+
<constraint firstItem="iBD-hx-i4S" firstAttribute="leading" secondItem="gEV-Jy-c1F" secondAttribute="leading" id="OrA-5t-lvh"/>
5459
<constraint firstItem="gEV-Jy-c1F" firstAttribute="top" secondItem="AGo-cn-Hlv" secondAttribute="topMargin" constant="4" id="PuG-dm-jyl"/>
5560
<constraint firstItem="OKO-zA-KVd" firstAttribute="leading" secondItem="gEV-Jy-c1F" secondAttribute="trailing" constant="12" id="Rp7-TF-kx1"/>
61+
<constraint firstItem="iBD-hx-i4S" firstAttribute="top" secondItem="gEV-Jy-c1F" secondAttribute="top" id="cO4-WH-z86"/>
5662
<constraint firstAttribute="trailingMargin" relation="lessThanOrEqual" secondItem="OKO-zA-KVd" secondAttribute="trailing" constant="30" id="cVN-Xv-jIW"/>
63+
<constraint firstItem="iBD-hx-i4S" firstAttribute="trailing" secondItem="gEV-Jy-c1F" secondAttribute="trailing" id="jp2-nE-HmW"/>
64+
<constraint firstItem="iBD-hx-i4S" firstAttribute="bottom" secondItem="gEV-Jy-c1F" secondAttribute="bottom" id="u7R-gY-qaH"/>
5765
</constraints>
5866
</tableViewCellContentView>
5967
</tableViewCell>
@@ -197,4 +205,7 @@
197205
<point key="canvasLocation" x="534.39999999999998" y="337.01333333333332"/>
198206
</scene>
199207
</scenes>
208+
<resources>
209+
<image name="project_icon_edit.png" width="22" height="22"/>
210+
</resources>
200211
</document>

Coding_iOS/Controllers/ProjectSetting/ProjectSetting.storyboard

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
@@ -419,6 +419,10 @@
419419
<constraint firstAttribute="width" constant="60" id="lhf-z4-2Wz"/>
420420
</constraints>
421421
</imageView>
422+
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="project_icon_edit.png" translatesAutoresizingMaskIntoConstraints="NO" id="22M-kU-Puz">
423+
<rect key="frame" x="15" y="15" width="60" height="60"/>
424+
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.20000000000000001" colorSpace="calibratedRGB"/>
425+
</imageView>
422426
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YBJ-EV-g6r">
423427
<rect key="frame" x="0.0" y="0.0" width="375" height="1"/>
424428
<color key="backgroundColor" red="0.78039215689999997" green="0.79215686269999996" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -444,6 +448,10 @@
444448
<constraint firstItem="3zN-av-S8V" firstAttribute="centerY" secondItem="CxV-Qa-5mo" secondAttribute="centerY" id="0Bt-hU-gWy"/>
445449
<constraint firstItem="FRD-A2-Fm7" firstAttribute="centerY" secondItem="3zN-av-S8V" secondAttribute="centerY" id="AdP-im-TM2"/>
446450
<constraint firstItem="3zN-av-S8V" firstAttribute="leading" secondItem="CxV-Qa-5mo" secondAttribute="leading" constant="15" id="Aza-0O-v68"/>
451+
<constraint firstItem="22M-kU-Puz" firstAttribute="top" secondItem="3zN-av-S8V" secondAttribute="top" id="EFx-iH-lgp"/>
452+
<constraint firstItem="22M-kU-Puz" firstAttribute="trailing" secondItem="3zN-av-S8V" secondAttribute="trailing" id="EY1-Ig-9F7"/>
453+
<constraint firstItem="22M-kU-Puz" firstAttribute="bottom" secondItem="3zN-av-S8V" secondAttribute="bottom" id="Hng-cN-bcE"/>
454+
<constraint firstItem="22M-kU-Puz" firstAttribute="leading" secondItem="3zN-av-S8V" secondAttribute="leading" id="K5F-9X-m8w"/>
447455
<constraint firstItem="FRD-A2-Fm7" firstAttribute="leading" secondItem="3zN-av-S8V" secondAttribute="trailing" constant="30" id="NGx-r5-cQe"/>
448456
<constraint firstItem="YBJ-EV-g6r" firstAttribute="top" secondItem="CxV-Qa-5mo" secondAttribute="top" id="a0q-7B-DUt"/>
449457
<constraint firstAttribute="trailing" secondItem="YBJ-EV-g6r" secondAttribute="trailing" id="ab0-vj-YUN"/>
@@ -739,6 +747,7 @@
739747
</scenes>
740748
<resources>
741749
<image name="icon_project_private.png" width="12" height="12"/>
750+
<image name="project_icon_edit.png" width="22" height="22"/>
742751
<image name="taskOwner.png" width="33" height="33"/>
743752
</resources>
744753
</document>
493 Bytes
Loading
698 Bytes
Loading

0 commit comments

Comments
 (0)