[英]NSNotification, how to handle if event is not registered
If I call an NSNotification and I have not registered to receive the event what will happen? 如果我打电话给NSNotification并且我没有注册接收事件将会发生什么? Will I get an runtime exception?
我会得到运行时异常吗? If yes, how do I handle it?
如果是,我该如何处理?
Thanks 谢谢
If you mean posting a notification, nothing. 如果您的意思是发布通知,没有。 Posting a notification does not require a listener.
发布通知不需要监听器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.