Skip to content

Commit ddff54b

Browse files
committed
消息通知默认图标
1 parent 93d9263 commit ddff54b

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
4E6D718E1A762879005AD988 /* icon_user_monkey_i6p@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E6D718C1A762879005AD988 /* icon_user_monkey_i6p@3x.png */; };
121121
4E6FFB311AB3176900F27B3F /* ProjectReadMeCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E6FFB301AB3176900F27B3F /* ProjectReadMeCell.m */; };
122122
4E72F82D1B144778001B6CE6 /* NSMutableString+Common.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E72F82C1B144778001B6CE6 /* NSMutableString+Common.m */; };
123+
4E72F82F1B159997001B6CE6 /* tipIcon_Other@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E72F82E1B159997001B6CE6 /* tipIcon_Other@2x.png */; };
123124
4E743E691A8866E300DADDE5 /* taskDescription_add_arrow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E743E671A8866E300DADDE5 /* taskDescription_add_arrow@2x.png */; };
124125
4E743E6A1A8866E300DADDE5 /* taskDescription_check_arrow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E743E681A8866E300DADDE5 /* taskDescription_check_arrow@2x.png */; };
125126
4E743E6D1A88A3CC00DADDE5 /* EaseMarkdownTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E743E6C1A88A3CC00DADDE5 /* EaseMarkdownTextView.m */; };
@@ -821,6 +822,7 @@
821822
4E6FFB301AB3176900F27B3F /* ProjectReadMeCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProjectReadMeCell.m; sourceTree = "<group>"; };
822823
4E72F82B1B144778001B6CE6 /* NSMutableString+Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMutableString+Common.h"; sourceTree = "<group>"; };
823824
4E72F82C1B144778001B6CE6 /* NSMutableString+Common.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSMutableString+Common.m"; sourceTree = "<group>"; };
825+
4E72F82E1B159997001B6CE6 /* tipIcon_Other@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tipIcon_Other@2x.png"; sourceTree = "<group>"; };
824826
4E743E671A8866E300DADDE5 /* taskDescription_add_arrow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskDescription_add_arrow@2x.png"; sourceTree = "<group>"; };
825827
4E743E681A8866E300DADDE5 /* taskDescription_check_arrow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskDescription_check_arrow@2x.png"; sourceTree = "<group>"; };
826828
4E743E6B1A88A3CC00DADDE5 /* EaseMarkdownTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EaseMarkdownTextView.h; sourceTree = "<group>"; };
@@ -2786,6 +2788,7 @@
27862788
8EA6CFBA19E240C40076D59C /* tipIcon_TweetComment@2x.png */,
27872789
8EA6CFBB19E240C40076D59C /* tipIcon_TweetLike@2x.png */,
27882790
8EA6CFBC19E240C40076D59C /* tipIcon_UserFollow@2x.png */,
2791+
4E72F82E1B159997001B6CE6 /* tipIcon_Other@2x.png */,
27892792
);
27902793
path = tip_icons;
27912794
sourceTree = "<group>";
@@ -3449,6 +3452,7 @@
34493452
4E90F89E1AF709C100B44F03 /* topic-ios.html in Resources */,
34503453
4E66EE261A28226000DA1B3E /* button_file_createFolder_enable@2x.png in Resources */,
34513454
8EA6D19C19E240C40076D59C /* tipIcon_QcTask@2x.png in Resources */,
3455+
4E72F82F1B159997001B6CE6 /* tipIcon_Other@2x.png in Resources */,
34523456
4E96E7DB1A1B537E0037C098 /* icon_file_code@2x.png in Resources */,
34533457
8EA6D19B19E240C40076D59C /* tipIcon_PullRequestComment@2x.png in Resources */,
34543458
8EF6434119FE696B00F7EEB0 /* cell_checkmark@2x.png in Resources */,
@@ -4062,6 +4066,7 @@
40624066
COPY_PHASE_STRIP = YES;
40634067
ENABLE_NS_ASSERTIONS = NO;
40644068
GCC_C_LANGUAGE_STANDARD = gnu99;
4069+
GCC_PREPROCESSOR_DEFINITIONS = NS_BLOCK_ASSERTIONS;
40654070
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
40664071
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
40674072
GCC_WARN_UNDECLARED_SELECTOR = YES;
2.03 KB
Loading

Coding_iOS/Views/Cell/CodingTipCell.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ - (void)layoutSubviews{
5858
_contentLabel.textColor = [UIColor colorWithHexString:_curTip.status.boolValue? @"0x999999" :@"0x222222"];
5959

6060
CGFloat curBottomY = 10;
61-
_iconView.image = [UIImage imageNamed:[NSString stringWithFormat:@"tipIcon_%@", _curTip.target_type]];
61+
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"tipIcon_%@", _curTip.target_type]];
62+
_iconView.image = image? image : [UIImage imageNamed:@"tipIcon_Other"];
6263
[_contentLabel setLongString:_curTip.content withFitWidth:kCodingTipCell_WidthContent];
6364
curBottomY += [_curTip.content getHeightWithFont:kCodingTipCell_FontContent constrainedToSize:CGSizeMake(kCodingTipCell_WidthContent, CGFLOAT_MAX)]+10;
6465
NSString *timeStr = [_curTip.created_at stringTimeDisplay];

0 commit comments

Comments
 (0)