1

我在我的聊天应用程序中使用 JSQMessagesViewController。

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

我进行了很多搜索,但找不到使用提供的 API 完成此任务的任何方法。

知道我该怎么做吗?

谢谢,丹尼尔

4

1 回答 1

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
}
于 2016-02-14T23:43:29.457 回答