1, [xmppStreamaddDelegate:selfdelegateQueue:dispatch_get_main_queue()];
2, im_queue = dispatch_queue_create("im.queue", Nil);
[xmppStreamaddDelegate:selfdelegateQueue:im_queue];
3,- (XMPPMessage *)xmppStream:(XMPPStream *)sender willSendMessage:(XMPPMessage *)message
{
TTLog(@"%@",message);
return message;
}
- (void)xmppStream:(XMPPStream *)sender didSendMessage:(XMPPMessage *)message
{
TTLog(@"%@",message);
}
2,3必须结合使用,不然都卡着不会动了,
1,3不能并存,