Delegates Vs. Notifications in iPhoneOS

前端 未结 7 1895
既然无缘
既然无缘 2020-12-04 06:23

I am trying to call a method in my root view controller from a child view controller such that when I change my options they will automatically update the root view, which w

7条回答
  •  被撕碎了的回忆
    2020-12-04 07:20

    I would like to add:

    objects receiving notifications can react only after the event has occurred. This is a significant difference from delegation. The delegate is given a chance to reject or modify the operation proposed by the delegating object. Observing objects, on the other hand, cannot directly affect an impending operation.

提交回复
热议问题