Add Observer to BOOL variable

前端 未结 4 1960
半阙折子戏
半阙折子戏 2021-02-08 13:48

Is it possible to add observers to simple variables such as BOOLs or NSIntegers and see when they change?

Thanks!

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-08 14:48

    If they are properties of objects then yes.

    If they are not properties then no.

提交回复
热议问题