标签云

微信群

扫码加入我们

WeChat QR Code

I am currently observing a notification throughout the life of an object in a category. However, I am swizzling the dealloc method to have a spot to remove the observation. This feels bad and I am uncomfortable with it, additionally I am running into problems.Does anyone have any ideas how I can stop observing the notification just before the object will be deallocated within a category?


This seems like it will be exactly what I need, albeit a bit confusing. Thank you.

2019年04月22日50分14秒

Glad I could help.

2019年04月22日50分14秒

I missed the "confusing" part of your comment earlier. If there's something I can explain better, please let me know.

2019年04月22日50分14秒

Sorry about that, it's just a little to confusing to grasp, just took some time. Thank you for your answer!

2019年04月22日50分14秒