@@ -25,16 +25,16 @@ @implementation XHDemoWeChatMessageTableViewController
2525- (XHMessage *)getTextMessageWithBubbleMessageType : (XHBubbleMessageType)bubbleMessageType {
2626 XHMessage *textMessage = [[XHMessage alloc ] initWithText: @" Call Me 15915895880.这是华捷微信,为什么模仿这个页面效果呢?希望微信团队能看到我们在努力,请微信团队给个机会,让我好好的努力靠近大神,希望自己也能发亮,好像有点过分的希望了,如果大家喜欢这个开源库,请大家帮帮忙支持这个开源库吧!我是Jack,叫华仔也行,曾宪华就是我啦!" sender: @" 华仔" timestamp: [NSDate distantPast ]];
2727 textMessage.avatar = [UIImage imageNamed: @" avatar" ];
28- textMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
28+ textMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
2929 textMessage.bubbleMessageType = bubbleMessageType;
3030
3131 return textMessage;
3232}
3333
3434- (XHMessage *)getPhotoMessageWithBubbleMessageType : (XHBubbleMessageType)bubbleMessageType {
35- XHMessage *photoMessage = [[XHMessage alloc ] initWithPhoto: nil thumbnailUrl: @" http://www .pailixiu.com/jack/networkPhoto.png" originPhotoUrl: nil sender: @" Jack" timestamp: [NSDate date ]];
35+ XHMessage *photoMessage = [[XHMessage alloc ] initWithPhoto: nil thumbnailUrl: @" http://childapp .pailixiu.com/jack/networkPhoto.png" originPhotoUrl: nil sender: @" Jack" timestamp: [NSDate date ]];
3636 photoMessage.avatar = [UIImage imageNamed: @" avatar" ];
37- photoMessage.avatarUrl = @" http://www .pailixiu.com/jack/JieIcon@2x.png" ;
37+ photoMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/JieIcon@2x.png" ;
3838 photoMessage.bubbleMessageType = bubbleMessageType;
3939
4040 return photoMessage;
@@ -44,7 +44,7 @@ - (XHMessage *)getVideoMessageWithBubbleMessageType:(XHBubbleMessageType)bubbleM
4444 NSString *videoPath = [[NSBundle mainBundle ] pathForResource: @" IMG_1555.MOV" ofType: @" " ];
4545 XHMessage *videoMessage = [[XHMessage alloc ] initWithVideoConverPhoto: [XHMessageVideoConverPhotoFactory videoConverPhotoWithVideoPath: videoPath] videoPath: videoPath videoUrl: nil sender: @" Jayson" timestamp: [NSDate date ]];
4646 videoMessage.avatar = [UIImage imageNamed: @" avatar" ];
47- videoMessage.avatarUrl = @" http://www .pailixiu.com/jack/JieIcon@2x.png" ;
47+ videoMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/JieIcon@2x.png" ;
4848 videoMessage.bubbleMessageType = bubbleMessageType;
4949
5050 return videoMessage;
@@ -53,7 +53,7 @@ - (XHMessage *)getVideoMessageWithBubbleMessageType:(XHBubbleMessageType)bubbleM
5353- (XHMessage *)getVoiceMessageWithBubbleMessageType : (XHBubbleMessageType)bubbleMessageType {
5454 XHMessage *voiceMessage = [[XHMessage alloc ] initWithVoicePath: nil voiceUrl: nil voiceDuration: @" 1" sender: @" Jayson" timestamp: [NSDate date ]]; initWithVoicePath: voiceUrl: sender: timestamp:
5555 voiceMessage.avatar = [UIImage imageNamed: @" avatar" ];
56- voiceMessage.avatarUrl = @" http://www .pailixiu.com/jack/JieIcon@2x.png" ;
56+ voiceMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/JieIcon@2x.png" ;
5757 voiceMessage.bubbleMessageType = bubbleMessageType;
5858
5959 return voiceMessage;
@@ -62,7 +62,7 @@ - (XHMessage *)getVoiceMessageWithBubbleMessageType:(XHBubbleMessageType)bubbleM
6262- (XHMessage *)getEmotionMessageWithBubbleMessageType : (XHBubbleMessageType)bubbleMessageType {
6363 XHMessage *emotionMessage = [[XHMessage alloc ] initWithEmotionPath: [[NSBundle mainBundle ] pathForResource: @" Demo0.gif" ofType: nil ] sender: @" Jayson" timestamp: [NSDate date ]];
6464 emotionMessage.avatar = [UIImage imageNamed: @" avatar" ];
65- emotionMessage.avatarUrl = @" http://www .pailixiu.com/jack/JieIcon@2x.png" ;
65+ emotionMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/JieIcon@2x.png" ;
6666 emotionMessage.bubbleMessageType = bubbleMessageType;
6767
6868 return emotionMessage;
@@ -71,7 +71,7 @@ - (XHMessage *)getEmotionMessageWithBubbleMessageType:(XHBubbleMessageType)bubbl
7171- (XHMessage *)getGeolocationsMessageWithBubbleMessageType : (XHBubbleMessageType)bubbleMessageType {
7272 XHMessage *localPositionMessage = [[XHMessage alloc ] initWithLocalPositionPhoto: [UIImage imageNamed: @" Fav_Cell_Loc" ] geolocations: @" 中国广东省广州市天河区东圃二马路121号" location: [[CLLocation alloc ] initWithLatitude: 23.110387 longitude: 113.399444 ] sender: @" Jack" timestamp: [NSDate date ]];
7373 localPositionMessage.avatar = [UIImage imageNamed: @" avatar" ];
74- localPositionMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
74+ localPositionMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
7575 localPositionMessage.bubbleMessageType = bubbleMessageType;
7676
7777 return localPositionMessage;
@@ -430,7 +430,7 @@ - (void)loadMoreMessagesScrollTotop {
430430- (void )didSendText : (NSString *)text fromSender : (NSString *)sender onDate : (NSDate *)date {
431431 XHMessage *textMessage = [[XHMessage alloc ] initWithText: text sender: sender timestamp: date];
432432 textMessage.avatar = [UIImage imageNamed: @" avatar" ];
433- textMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
433+ textMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
434434 [self insertNewObject: textMessage];
435435 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypeText];
436436 [self scrollToBottomAnimated: YES ];
@@ -446,7 +446,7 @@ - (void)didSendText:(NSString *)text fromSender:(NSString *)sender onDate:(NSDat
446446- (void )didSendPhoto : (UIImage *)photo fromSender : (NSString *)sender onDate : (NSDate *)date {
447447 XHMessage *photoMessage = [[XHMessage alloc ] initWithPhoto: photo thumbnailUrl: nil originPhotoUrl: nil sender: sender timestamp: date];
448448 photoMessage.avatar = [UIImage imageNamed: @" avatar" ];
449- photoMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
449+ photoMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
450450 [self addMessage: photoMessage];
451451 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypePhoto];
452452}
@@ -461,7 +461,7 @@ - (void)didSendPhoto:(UIImage *)photo fromSender:(NSString *)sender onDate:(NSDa
461461- (void )didSendVideoConverPhoto : (UIImage *)videoConverPhoto videoPath : (NSString *)videoPath fromSender : (NSString *)sender onDate : (NSDate *)date {
462462 XHMessage *videoMessage = [[XHMessage alloc ] initWithVideoConverPhoto: videoConverPhoto videoPath: videoPath videoUrl: nil sender: sender timestamp: date];
463463 videoMessage.avatar = [UIImage imageNamed: @" avatar" ];
464- videoMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
464+ videoMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
465465 [self addMessage: videoMessage];
466466 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypeVideo];
467467}
@@ -477,7 +477,7 @@ - (void)didSendVideoConverPhoto:(UIImage *)videoConverPhoto videoPath:(NSString
477477- (void )didSendVoice : (NSString *)voicePath voiceDuration : (NSString *)voiceDuration fromSender : (NSString *)sender onDate : (NSDate *)date {
478478 XHMessage *voiceMessage = [[XHMessage alloc ] initWithVoicePath: voicePath voiceUrl: nil voiceDuration: voiceDuration sender: sender timestamp: date];
479479 voiceMessage.avatar = [UIImage imageNamed: @" avatar" ];
480- voiceMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
480+ voiceMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
481481 [self addMessage: voiceMessage];
482482 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypeVoice];
483483}
@@ -493,7 +493,7 @@ - (void)didSendEmotion:(NSString *)emotionPath fromSender:(NSString *)sender onD
493493 if (emotionPath) {
494494 XHMessage *emotionMessage = [[XHMessage alloc ] initWithEmotionPath: emotionPath sender: sender timestamp: date];
495495 emotionMessage.avatar = [UIImage imageNamed: @" avatar" ];
496- emotionMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
496+ emotionMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
497497 [self addMessage: emotionMessage];
498498 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypeEmotion];
499499
@@ -508,7 +508,7 @@ - (void)didSendEmotion:(NSString *)emotionPath fromSender:(NSString *)sender onD
508508- (void )didSendGeoLocationsPhoto : (UIImage *)geoLocationsPhoto geolocations : (NSString *)geolocations location : (CLLocation *)location fromSender : (NSString *)sender onDate : (NSDate *)date {
509509 XHMessage *geoLocationsMessage = [[XHMessage alloc ] initWithLocalPositionPhoto: geoLocationsPhoto geolocations: geolocations location: location sender: sender timestamp: date];
510510 geoLocationsMessage.avatar = [UIImage imageNamed: @" avatar" ];
511- geoLocationsMessage.avatarUrl = @" http://www .pailixiu.com/jack/meIcon@2x.png" ;
511+ geoLocationsMessage.avatarUrl = @" http://childapp .pailixiu.com/jack/meIcon@2x.png" ;
512512 [self addMessage: geoLocationsMessage];
513513 [self finishSendMessageWithBubbleMessageType: XHBubbleMessageMediaTypeLocalPosition];
514514}
0 commit comments