Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 共享/转发JSQMedia消息_Swift_Jsqmessagesviewcontroller - Fatal编程技术网

Swift 共享/转发JSQMedia消息

Swift 共享/转发JSQMedia消息,swift,jsqmessagesviewcontroller,Swift,Jsqmessagesviewcontroller,如何共享/转发JSQMedia消息? 库是否支持此功能。?? 我已经测试了这个示例项目,我看到每个媒体项目旁边都有一个“辅助按钮”,但我不知道如何实现它?或者按钮出现的原因是什么 示例代码: override func collectionView(_ collectionView: JSQMessagesCollectionView, didTapCellAt indexPath: IndexPath, touchLocation: CGPoint) { view.resig

如何共享/转发JSQMedia消息? 库是否支持此功能。?? 我已经测试了这个示例项目,我看到每个媒体项目旁边都有一个“辅助按钮”,但我不知道如何实现它?或者按钮出现的原因是什么

示例代码:

override func collectionView(_ collectionView: JSQMessagesCollectionView, didTapCellAt indexPath: IndexPath, touchLocation: CGPoint) {

        view.resignFirstResponder()
        view.endEditing(true)
    }

    override func collectionView(_ collectionView: JSQMessagesCollectionView, didTapMessageBubbleAt indexPath: IndexPath)
    {
        if let test = self.getImage(indexPath: indexPath)
        {
            selectedImage = test
            self.performSegue(withIdentifier: "showMedia", sender: self)
        }
    }
任何指导和帮助都将不胜感激。
提前感谢

昨天好像有人为此功能发行了一期:@Alex7:给定的引用也是由我生成(发布)的。