我希望有一种非常简单的方法来了解当前使用 JSQMessagesViewController 显示了多少条消息。找不到任何直接询问 Controller 的信息。有吗?
最佳答案
获取可用消息总数:
// If you don't have multiple sections, simply go get the number of message in the first section
NSInteger numberOfAvailableMessages = [self.collectionView numberOfItemsInSection:0];
注意在数据已经加载到屏幕后调用。
关于ios - 确定在 JSQMessagesViewController 上显示多少消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32380458/