observeValueForKeyPath not being called

后端 未结 1 414
粉色の甜心
粉色の甜心 2021-01-01 16:32

I have a ViewController creating an instance of a UIView, and then I register an observer with the instance, such that

logoAnimation = [[MainLogoAnimation al         


        
相关标签:
1条回答
  • 2021-01-01 17:01

    Solved it: I was setting patrocinioDidLoad in logoAnimation directly, without using standard getters and setters. In logoAnimation,

    patrocinioDidLoad = YES;
    

    didn't work, whereas

    self.patrocinioDidLoad = YES;
    

    did!

    0 讨论(0)
提交回复
热议问题