Closed stefgeelen closed 4 years ago
Hey @stefgeelen,
It seems like your SMSCWhatsNewKitWrapper
gets deallocated too early.
This explains why self
which is referencing your SMSCWhatsNewKitWrapper
instance is nil.
Please check where and how you are storing (weak, strong) the instance of the SMSCWhatsNewKitWrapper
class and maybe add a deinit
in order to add a breakpoint to debug in which moment of the runtime your SMSCWhatsNewKitWrapper
class get deallocated.
But as far as I checked your code this is not an issue of WhatsNewKit
as the completion closure gets correctly called when the completion button has been tapped.
Hi Sven,
You were right, the problem was the deallocation. This can be closed. Thanks for the help.
WhatsNewKit Environment
Hi guys,
I have the current implementation of WhatsNewKit
I would expect that when I press my completion button my delegate is being triggered. After debugging I found out that in my completion block of the completionButton the property self is nil.
Any help? Thanks in advance!
Kind regards, Stef