Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you sure your delegate method is being called? I think the problem is the animation delegate method, which, according to Apple's documentation, must have this signature:</p> <pre><code>[UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)]; </code></pre> <p>And then you have a method like this in your class:</p> <pre><code>#pragma mark - #pragma mark UIView animation delegate method - (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void *)context { [self removeFromSuperview]; } </code></pre> <p>Probably your animation delegate is not being called, thus, the object is not released.</p> <p>From the documentation:</p> <blockquote> <p>setAnimationDidStopSelector:</p> <p>Sets the message to send to the animation delegate when animation stops.</p> <ul> <li>(void)setAnimationDidStopSelector:(SEL)selector</li> </ul> <p>Parameters</p> <p>selector</p> <p>The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context. Your method must take the following arguments:</p> <p>animationID</p> <p>An NSString containing an optional application-supplied identifier. This is the identifier that is passed to the beginAnimations:context: method. This argument can be nil.</p> <p>finished An NSNumber object containing a Boolean value. The value is YES if the animation ran to completion before it stopped or NO if it did not.</p> <p>context</p> <p>An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</p> </blockquote> <p>Hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload