我正在使用NSNotificationCenter
。问题是按钮点击我已经显示MBProgressHUB
直到45秒,在此之间如果服务器做任何更改NSNotificationCenter
不是触发器。
如果我不使用MBProgressHub
通知触发器。以下是我实施的代码。
dispatch_async(dispatch_get_main_queue(),^() {
[[NSNotificationCenter defaultCenter] postNotificationName:@"MqttResponseNotification" object:message.payloadString];
[[NSNotificationCenter defaultCenter] postNotificationName:@"MqttResponseHomeScreenNotification" object:message.payloadString];
});
当pProgressHub正在运行时,dispatch_Async内的NSNotificationCenter不会跳转。
请帮忙。