Questions tagged [jsqmessagesviewcontroller]

JSQMessagesViewController is an elegant messages UI library for iOS (now deprecated).

385 questions
0
votes
1 answer

cellTopLabel background color and cornerRadius

I want to make a rounded corner and background color for cellTopLabel, I have used this code: override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell =…
Luca Becchetti
  • 1,210
  • 1
  • 12
  • 28
0
votes
2 answers

JSQMessagesCollectionView (Message Bubble size all identical..)

I am using JSQMessagesCollectionView to build an app which enables chat. It works really fine till now because I start to notice all the message bubbles have the width of the first one! If the message is longer than the 1st bubble, then text is…
0
votes
2 answers

Swift, unable to reload chat window using JSQMessagesViewController

My app allows users to view another users info by tapping their avatar, at which they can block that user so that their message content is not visible. What is the best way when returning to the chat view to clear the messages and reload them? This…
ddpishere
  • 751
  • 1
  • 8
  • 23
0
votes
2 answers

Not able to see text of Bottom Label in JSQMessagesViewController

I am trying to add Sent/Unsent status message to all outgoing chat bubbles. For this, I am retuurning 40 from heightForCellBottomLabelAtIndexPath method. Also from attributedTextForCellBottomLabelAtIndexPath method I am returning a attributed…
user3265443
  • 535
  • 1
  • 8
  • 25
0
votes
1 answer

Open image - Unrecognized Selector

I'm trying to use NYTPhotoViewer to open a message from JSQMessagesViewController. After much research, I feel like I have the code correct, but continue to get the error "unrecognized selector sent to instance". Here is the code: override func…
Robert
  • 1,499
  • 2
  • 14
  • 22
0
votes
2 answers

How to change color of name and time next to bubble in JSQMessagesViewController

I am sorry but it is basic question. Though I read reference, I didn't get below question. I want to change the color of name and time next to bubble, how can I change them ? In the picture, I want to change the color of "Mike" and "12:28" I think…
Yaemon
  • 81
  • 1
  • 12
0
votes
0 answers

How to use JSQMessages and XMPP framework?

For developing iOS instant messaging apps, I did some research and found that there are JSQMessages for the UI build and XMPP framework for the core. Am I right? My questions are that what's the relationship between them? Should I use one of them…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
0
votes
2 answers

Hyperlinks in JSQMessagesViewController messages

I'm using the JSQMessages framework which is super awesome but I'm trying to enable hyperlinks in both the sent and received text messages - essentially i want to apply a find and replace system where certain words are replaced with pre determined…
user1419810
  • 836
  • 1
  • 16
  • 29
0
votes
3 answers

Add Custom label in JSQViewMessageViewController iOS

I want to add a custom label (with a time stamp) in each cell as well as an image (for warning message) in JSQMessageViewController. I am already using bottomlabel as well as toplabel. But I am unable to get the result I want. The image is a…
user5421830
0
votes
1 answer

useing JSQMessageMediaData with core data

i successfully integrated core data in my JSQ project, for my JSQMessageData i use NSManagedObject i created called CDChatMessage @interface CDChatMessage : NSManagedObject < JSQMessageData > @end at my JSQMessagesViewController i use…
Bar
  • 603
  • 1
  • 7
  • 19
0
votes
1 answer

JSQMessagesViewcontroller custom JSQMediaItem

I'm using JSQMessagesViewController and I write my custom photo and voice MediaItems which inheritance JSQMediaItem, and the mediaView of these two message types are different. Everything goes fine when sending/receiving these two kind of messages,…
0
votes
1 answer

My JSQMessageView Controller collectionView is being called 4 times

I was implementing the photo media item and noticed some extreme performance issues. When I started debugging I noticed that messageDataForItemAtIndexPath was getting called 4 times for each item, whereas in another sample project I set up it was…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

No visible @interface for 'JSQSystemSoundPlayer' declares the selector 'playSoundWithFilename:fileExtension:'

This is where my build fails in JSQSystemSoundPlayer. I cannot get around this. if (asAlert) { [[JSQSystemSoundPlayer sharedPlayer] playAlertSoundWithFilename:fileName fileExtension:kJSQSystemSoundTypeAIFF]; } else { [[JSQSystemSoundPlayer…
Skper11
  • 61
  • 10
0
votes
2 answers

Invalid parameter not satisfying: messageSenderId != nil

I integrated 'XBChatModule' Library from Cocoapods into my project. When I run the code for the first time, It crashed the app by throwing following error -[XBMessage messageHash]: unrecognized selector sent to instance and it got resolved by…
HarshIT
  • 4,583
  • 2
  • 30
  • 60
0
votes
1 answer

-[XBMessage messageHash]: unrecognized selector sent to instance

I've integrated following library from Cocoapods, You may find the code and its sample code at https://github.com/EugeneNguyen/XBChatModule pod 'XBChatModule' This library is used to integrate XMPP Chat in Xcode project. I also added suggested code…
HarshIT
  • 4,583
  • 2
  • 30
  • 60