0

I seeking, but cannot find information about this. Can I add video and photo in one bubble message cell?

I implemented sending attachments one by one.

JSQPhotoMediaItem *photoItem = [[JSQPhotoMediaItem alloc] initWithImage:[UIImage imageNamed:@"goldengate"]];   
JSQMessage *photoMessage = [JSQMessagemessageWithSenderId:kJSQDemoAvatarIdSquires displayName:kJSQDemoAvatarDisplayNameSquires media:photoItem];

But how to send it together?

Bhavin Bhadani
  • 22,224
  • 10
  • 78
  • 108
NilsHolgerson
  • 264
  • 2
  • 11

2 Answers2

1

JSQMessagesViewController does not currently support adding multiple media items (location, photo or video) to a single message. Have a look at JSQMessage.h:

+ (instancetype)messageWithSenderId:(NSString *)senderId displayName:(NSString *)displayName text:(NSString *)text;
+ (instancetype)messageWithSenderId:(NSString *)senderId displayName:(NSString *)displayName media:(id<JSQMessageMediaData>)media;

You would have to implement this functionality yourself or send them in separate messages.

0

if you are willing to do this you should try by making your own custom JSQMessagesCollectionViewCell have a look here might be helpful!

Ravindra Kushwaha
  • 7,846
  • 14
  • 53
  • 103
iNoob
  • 144
  • 1
  • 15
  • When posting a link, you should add also a summary of what the link says. If at some point the link becomes broken, your answer will not be helpful. – Tavo Jun 29 '17 at 08:12