菜鸟教程小白 发表于 2022-12-12 17:23:02

ios - NSNotificationCenter 更改观察者顺序


                                            <p><div>
            <aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
      <div class="d-flex fd-column fw-nowrap">
            <div class="d-flex fw-nowrap">
                <div class="flex--item wmn0 fl1 lh-lg">
                  <div class="flex--item fl1 lh-lg">
                        <b>这个问题在这里已经有了答案</b>:
                        
                  <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您无法更改观察者的顺序,即使您按照您希望的顺序添加它们也不能保证通知中心以正确的顺序调用它们。我建议您添加一个需要先调用的观察者,然后再为其他人发布另一个通知。这将很难在以后调试,但在这种情况下您将确定顺序</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - NSNotificationCenter 更改观察者顺序,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/20653716/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/20653716/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - NSNotificationCenter 更改观察者顺序