是在主队列里面么,

这个只是传递了主线程

    [xmppStreamaddDelegate:selfdelegateQueue:dispatch_get_main_queue()];

而具体网络请求放入主线程没有,还要 看具体执行的代码,比如,dispatch_async,dispatch_after,

 

模式:

 1, NSError *error;

   if ([mStream connect:&error]) 

 2,XMPPElementReceipt *receipt = Nil;

    [mStream sendElement:message andGetReceipt:&receipt];

原文地址:https://www.cnblogs.com/guligei/p/3512250.html