Open springlo opened 10 years ago
Was just coming here to say the same.
- (void)dealloc
{
NSLog(@"%s", __PRETTY_FUNCTION__);
}
This never logs.
Any idea what is keeping a reference?
@springlo did you ever find what's holding onto this?
I've found a fix.
At the end of the hideNotification method, add
[self performSelector:@selector(removeFromView) withObject:nil afterDelay:1.5];
then add a new method:
-(void)removeFromView
{
[_gravity removeItem:self];
[_collision removeItem:self];
[_itemBehavior removeItem:self];
[self removeFromSuperview];
}