我想在聊天中显示时间标签。但是我在解析器之后找不到数据时间。
是否可以在我的库中添加扩展名以获取时间?
我用https://github.com/robbiehanson/XMPPFramework
和简单的客户端示例。
我要使用XEP-0203(XMPPElement + Delay.h)扩展。
最佳答案
XMPPElement+Delay.m
并将XMPPElement+Delay.h
的行添加到XMPPFramework.h
中。 -xmppStream:didReceiveMessage
的[message delayedDeliveryDate]
中并记录结果。确保您#import "XMPPFramework.h"
。