AZNotification icon indicating copy to clipboard operation
AZNotification copied to clipboard

AZNotificationView not release

Open springlo opened this issue 11 years ago • 3 comments

407b3023-588a-4fa0-a950-2dc38a1798b9

springlo avatar Sep 22 '14 10:09 springlo

Was just coming here to say the same.

- (void)dealloc
{
    NSLog(@"%s", __PRETTY_FUNCTION__);
}

This never logs.

Any idea what is keeping a reference?

ddaddy avatar Feb 04 '15 14:02 ddaddy

@springlo did you ever find what's holding onto this?

ddaddy avatar Feb 23 '15 15:02 ddaddy

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];
}

ddaddy avatar Feb 23 '15 15:02 ddaddy