Giter Site home page Giter Site logo

Comments (4)

 avatar commented on June 15, 2024

Hi @ajay2c9 ,

We recommend you not to use QMChatSectionManager for your own Chat View Controller.

Unfortunately, there are some reasons:

  1. We wrote it for using with our collection view.
  2. Our collection view is transformed upside down.

That's why in your implementation you can get some unexpected behaviour.

from qmchatviewcontroller-ios.

ajay2c9 avatar ajay2c9 commented on June 15, 2024

How to get the all messages at a time in a array in correct order without using the QMChatSectionManager and updating the array while sending and receiving the messages.

from qmchatviewcontroller-ios.

Raikerian avatar Raikerian commented on June 15, 2024

Hi @ajay2c9

First of all you are trying to use table view. So as I can understand you did not follow our guide here. You need to subclass from our QMChatViewController class in order to use all its features. With it you can easily customise such things as cells colours, font, size etc. As an example you can use our Q-municate project or Samples project. You can also use an example our new (development is in progress) Q-municate chat view controller customised class here (keep in mind, it is still under development).

In your current case unfortunately there is no a perfect way for you to use our custom section manager in your own table view. It was designed specially for our collection view been transformed upside down in order for new messages being displayed at the controller push. Thats why it is adding messages in incorrect order for you, but in a perfect order for us.

If you want to develop your own chat view controller based on table view you will need to design your own chat section manager (you can also read why collection view is better then table view for chat purposes).

You are also welcome to fork from our QMChatViewController repository and customise it fully inside. Our code is well documented in header files, so don't forget to read it :)

If you are still having questions feel free to ask.

from qmchatviewcontroller-ios.

Raikerian avatar Raikerian commented on June 15, 2024

@ajay2c9 If you are still having any other problems or questions - feel free to let us know by creating a separate issue.

from qmchatviewcontroller-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.