Comments (4)
Hi @ajay2c9 ,
We recommend you not to use QMChatSectionManager for your own Chat View Controller.
Unfortunately, there are some reasons:
- We wrote it for using with our collection view.
- Our collection view is transformed upside down.
That's why in your implementation you can get some unexpected behaviour.
from qmchatviewcontroller-ios.
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.
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.
@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)
- Not able to get name for each message HOT 2
- How to use the voice recording? HOT 3
- How to adjust the toolbar position in the ChatviewController when tabbar is hidden. HOT 7
- Using this sdk and facing issue..... HOT 2
- Not able to remove audio recording icon HOT 2
- InputToolbar extra margin in UITabBarController when keyboard is visible HOT 5
- QMInputToolbar preferredDefaultHeight property is not working.
- Swipe back gesture freeze UI HOT 2
- How to assign UIImage to message without using URI?
- Propose Logo
- Audio Recording duration is not updating HOT 2
- Add haptic feedback on pressing audio button
- On chat screen UI issues
- Run the project. HOT 2
- update SDWebImage dependency
- UIImage *locationSnapshot = [QMImageLoader.instance.imageCache imageFromCacheForKey:key];
- UIImage *locationSnapshot = [QMImageLoader.instance.imageCache imageFromCacheForKey:key]; No known instance method for selector 'imageFromCacheForKey:'
- [Xcode 11] Multiple commands produce.... HOT 1
- QMChatViewController Text becomes black after pressing Send button
- Update QMChatViewController to use the latest SDWebImage v5.9.0 pod. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmchatviewcontroller-ios.