美文网首页
腾讯云IM 集成到项目中的坑

腾讯云IM 集成到项目中的坑

作者: 紫竹吟风 | 来源:发表于2018-05-10 16:42 被阅读0次
    1. 首先 重写了chatVC
      按住聊天cell
      进入崩溃 报错:
      *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputViewController: 0x13fd75b90> should have parent view controller:<FriendPlay.WLDialogViewController: 0x13fd54d10> but requested parent is:<UIInputWindowController: 0x140815000>'

    只要将
    @property(nonatomic,strong) ChatInputPanel * inputView;
    命名改一个名字即可
    @property(nonatomic,strong) ChatInputPanel * chatInputView;

    1. 发送语音的功能 在呼起电话功能后 再返回 就不能发送语音了(录音失败)
      经过查找原因发现 是由于 AVAudioSession 模式被改变了

    视频电话的模式 和录音模式是不一样的 ,进入视频电话时将模式改掉了,再回到录音模式 录音功能就失效了
    再录音时 将模式改为录音模式即可

    相关文章

      网友评论

          本文标题:腾讯云IM 集成到项目中的坑

          本文链接:https://www.haomeiwen.com/subject/nqaukftx.html