Skip to content

Commit f0de685

Browse files
committed
fix the emotions local path bug.
1 parent 3d1e2e9 commit f0de685

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Example/MessageDisplayExample/MessageDisplayExample/XHDemoWeChatMessageTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ - (void)viewDidLoad
149149
for (NSInteger j = 0; j < 18; j ++) {
150150
XHEmotion *emotion = [[XHEmotion alloc] init];
151151
NSString *imageName = [NSString stringWithFormat:@"section%ld_emotion%ld", (long)i , (long)j % 16];
152-
emotion.emotionPath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"emotion%ld@2x.gif", (long)j] ofType:@""];
152+
emotion.emotionPath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"emotion%ld.gif", (long)j] ofType:@""];
153153
emotion.emotionConverPhoto = [UIImage imageNamed:imageName];
154154
[emotions addObject:emotion];
155155
}

0 commit comments

Comments
 (0)