泡泡内的JSQMessagesViewController时间戳

时间:2016-01-13 18:45:04

标签: objective-c jsqmessagesviewcontroller

我在聊天应用中使用了JSQMessagesViewController。

我想在其右下角的气泡中添加一个小的时间戳文本。

我已经搜索了很多但是找不到任何方法可以使用提供的API来完成此任务。

知道我该怎么做吗?

谢谢, 丹尼尔

1 个答案:

答案 0 :(得分:1)

只需创建一个自定义单元格或xib,然后在实现JSQ框架时,只需使用

中的自定义单元格
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
     let cell = collectionView?.dequeueReusableCellWithReuseIdentifier("[YOURCUSTOMCELLIDENTIFYER]", forIndexPath: indexPath)

    //Configure your cell here

    return cell
}