Closed haifengkao closed 10 years ago
No, the logic is different. If justCreated == NO
, it means the KVO event (of adLoaded
) has been registered in previous startAdNetworkAdapterClass:
. If you don't check the value of justCreated
, the same KVO event will be registered again.
Just call startAdNetworkAdapterClass:
multiple times and you will see multiple observeValueForKeyPath:ofObject:
being invoked when adLoaded
changes its value. I don't think it is your intention.
Declining in favor of #86
see https://github.com/larsacus/LARSAdController/issues/84