あなたがリンク
cell.textView?.linkTextAttributes = [NSForegroundColorAttributeName : UIColor.blueColor()] //this is the color of the links
の色を変更することができ、着信テキストまたは発信テキストこのコードの
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell : JSQMessagesCollectionViewCell = super.collectionView(collectionView, cellForItemAtIndexPath: indexPath) as! JSQMessagesCollectionViewCell
let msg : JSQMessage = (self.demoData?.messages[indexPath.row])! as! JSQMessage
if (!msg.isMediaMessage) {
if(msg.senderId == self.senderId())
{
cell.textView?.textColor = UIColor.blackColor() //change this color for your messages
}else
{
cell.textView?.textColor = UIColor.whiteColor() //change this color for other people message
}
cell.textView?.linkTextAttributes = [NSForegroundColorAttributeName : UIColor.blueColor()] //this is the color of the links
}
return cell;
}
の色を変更私はこれがあなた
を役に立てば幸い