Hi Everyone,
I have searched and read up on this topic and I gather that when you assign event handlers, you must release these. So if you have something like :
MyViewController.SomeEvent += HandleEvent;
in ViewDidLoad, you should release this in ViewDidDisappear by doing something like
MyViewController.SomeEvent -= HandleEvent
My question is, do you need to do this with anonymous methods as well? One I have a lot of are button events.
Button.TouchUpInside += (obj, eventargs) => {
//Do something here
}
Do I need to release this somehow? And if so, how do I do this?
Cheers!