Skip to content

Commit 78e4496

Browse files
committed
项目动态优化
1 parent bffe241 commit 78e4496

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,8 @@
12221222
B14689C11EE100B200B01371 /* vip_4_45@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689B11EE100B200B01371 /* vip_4_45@3x.png */; };
12231223
B14689C21EE100B200B01371 /* vip_4_75@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689B21EE100B200B01371 /* vip_4_75@2x.png */; };
12241224
B14689C31EE100B200B01371 /* vip_4_75@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B14689B31EE100B200B01371 /* vip_4_75@3x.png */; };
1225+
B16EEF08208DDBB6005ABFD5 /* timeline_icon_read@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B16EEF06208DDBB5005ABFD5 /* timeline_icon_read@3x.png */; };
1226+
B16EEF09208DDBB6005ABFD5 /* timeline_icon_unread@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = B16EEF07208DDBB6005ABFD5 /* timeline_icon_unread@3x.png */; };
12251227
B177F5C52060E6B1006709C2 /* wiki.html in Resources */ = {isa = PBXBuildFile; fileRef = B177F5C02060E6B1006709C2 /* wiki.html */; };
12261228
B177F5C62060E6B1006709C2 /* bubble.html in Resources */ = {isa = PBXBuildFile; fileRef = B177F5C12060E6B1006709C2 /* bubble.html */; };
12271229
B177F5C72060E6B1006709C2 /* markdown.html in Resources */ = {isa = PBXBuildFile; fileRef = B177F5C22060E6B1006709C2 /* markdown.html */; };
@@ -3327,6 +3329,8 @@
33273329
B14689B11EE100B200B01371 /* vip_4_45@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_4_45@3x.png"; sourceTree = "<group>"; };
33283330
B14689B21EE100B200B01371 /* vip_4_75@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_4_75@2x.png"; sourceTree = "<group>"; };
33293331
B14689B31EE100B200B01371 /* vip_4_75@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "vip_4_75@3x.png"; sourceTree = "<group>"; };
3332+
B16EEF06208DDBB5005ABFD5 /* timeline_icon_read@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timeline_icon_read@3x.png"; sourceTree = "<group>"; };
3333+
B16EEF07208DDBB6005ABFD5 /* timeline_icon_unread@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timeline_icon_unread@3x.png"; sourceTree = "<group>"; };
33303334
B177F5C02060E6B1006709C2 /* wiki.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = wiki.html; sourceTree = "<group>"; };
33313335
B177F5C12060E6B1006709C2 /* bubble.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = bubble.html; sourceTree = "<group>"; };
33323336
B177F5C22060E6B1006709C2 /* markdown.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = markdown.html; sourceTree = "<group>"; };
@@ -6048,6 +6052,8 @@
60486052
children = (
60496053
8EA6CFAB19E240C40076D59C /* timeline_icon_read@2x.png */,
60506054
8EA6CFAC19E240C40076D59C /* timeline_icon_unread@2x.png */,
6055+
B16EEF06208DDBB5005ABFD5 /* timeline_icon_read@3x.png */,
6056+
B16EEF07208DDBB6005ABFD5 /* timeline_icon_unread@3x.png */,
60516057
8EA6CFAD19E240C40076D59C /* timeline_line_read@2x.png */,
60526058
8EA6CFAE19E240C40076D59C /* timeline_line_unread@2x.png */,
60536059
);
@@ -7572,6 +7578,7 @@
75727578
8EA6D16819E240C40076D59C /* nav_project_member@2x.png in Resources */,
75737579
4E9423E21E69401B0095F1CD /* blankpage_image_MessageList@2x.png in Resources */,
75747580
4EB52F121C74691B00B5EBEA /* password_unlook@3x.png in Resources */,
7581+
B16EEF09208DDBB6005ABFD5 /* timeline_icon_unread@3x.png in Resources */,
75757582
D0C447CD1C02DB6700DC1C4B /* pop_Message@3x.png in Resources */,
75767583
4E63840B1B33F9B400D98648 /* comment_bg@2x.png in Resources */,
75777584
4EB52F2E1C77138A00B5EBEA /* button_scan@2x.png in Resources */,
@@ -7768,6 +7775,7 @@
77687775
8E97CE691A0A3424006F9AD7 /* keyboard_page_selected@2x.png in Resources */,
77697776
B1C8716C1EB182C7003DACF0 /* taskPriority3@3x.png in Resources */,
77707777
B177F5C92060E6B1006709C2 /* code.html in Resources */,
7778+
B16EEF08208DDBB6005ABFD5 /* timeline_icon_read@3x.png in Resources */,
77717779
B1C871B31EB2D9F0003DACF0 /* file_activity_icon_delete_history@3x.png in Resources */,
77727780
4E6383DB1B3266C200D98648 /* mrpr_icon_commit@2x.png in Resources */,
77737781
D0C447C51C02DB5400DC1C4B /* pop_User@2x.png in Resources */,
Loading
Loading
Loading
Loading

Coding_iOS/Views/Cell/ProjectActivityListCell.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
//
88

99
#define kProjectActivityListCell_IconHeight 33.0
10-
#define kProjectActivityListCell_TimeIconWidth 13.0
10+
#define kProjectActivityListCell_TimeIconWidth 7.0
1111
#define kProjectActivityListCell_TimeLineWidth 2.0
12-
#define kProjectActivityListCell_LeftPading 85
12+
#define kProjectActivityListCell_LeftPading 75
1313
#define kProjectActivityListCell_RightPading kPaddingLeftWidth
1414
#define kProjectActivityListCell_UpDownPading kScaleFrom_iPhone5_Desgin(10)
1515
#define kProjectActivityListCell_TextPading 5.0
@@ -48,15 +48,11 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
4848
if (self) {
4949
// Initialization code
5050
if (!_userIconView) {
51-
_userIconView = [[UITapImageView alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, kProjectActivityListCell_UpDownPading, kProjectActivityListCell_IconHeight, kProjectActivityListCell_IconHeight)];
51+
_userIconView = [[UITapImageView alloc] initWithFrame:CGRectMake(32, kProjectActivityListCell_UpDownPading, kProjectActivityListCell_IconHeight, kProjectActivityListCell_IconHeight)];
5252
[_userIconView doCircleFrame];
5353
[self.contentView addSubview:_userIconView];
5454
}
55-
CGFloat imgRightX = CGRectGetMaxX(_userIconView.frame);
56-
CGFloat timeLineCenterX = imgRightX + (kProjectActivityListCell_LeftPading-imgRightX)/2;
57-
58-
;
59-
55+
CGFloat timeLineCenterX = kPaddingLeftWidth;
6056
if (!_timeLineView) {
6157
_timeLineView = [[UIImageView alloc] initWithFrame:CGRectMake(timeLineCenterX - kProjectActivityListCell_TimeLineWidth/2, 0, kProjectActivityListCell_TimeLineWidth, 1)];
6258
// _timeLineView.contentMode = UIViewContentModeScaleToFill;

0 commit comments

Comments
 (0)