gpt4 book ai didi

objective-c - 观察者通知的 NSNotification 顺序

转载 作者:IT王子 更新时间:2023-10-29 08:03:26 25 4
gpt4 key购买 nike

如果我有几个类观察一个特定的 NSNotification,当发布通知时观察者以什么顺序被通知?

最佳答案

无法保证发出的订单通知。如果您需要排序,您可能想要创建一个类来监听一个通知并发送多个有序的通知,而其他类可以监听。

关于objective-c - 观察者通知的 NSNotification 顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12957590/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com