title: Solution Like Trash Can Animation
body: <p>I would like to put the undocumented trash can animation in my program. The call 
  method is:</p>
  
  <pre><code>+ (void)animateToolbarItemIndex:(unsigned)index duration:(double)duration target:(id)target didFinishSelector:(SEL)selector;
  </code></pre>
  
  <p>Can anyone figure out what I should plug in for:</p>
  
  <ul>
  <li>index </li>
  <li>duration</li>
  <li>target</li>
  <li>selector
  ?</li>
  </ul>
  
  <p>My trials are not working resulting in the error: </p>
  
  <pre><code>2011-11-15 16:05:20.639 CNiPhone[973:707] +[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:]: unrecognized selector sent to class 0x3f019c08
  2011-11-15 16:05:20.641 CNiPhone[973:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:]: unrecognized selector sent to class 0x3f019c08'
  </code></pre>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>@interface UIToolbar (privateMethods2)
  
  + (void)animateToolbarItemIndex:(unsigned)index duration:(double)duration target:(id)target didFinishSelector:(SEL)selector;
  
  @end
  
      [UIToolbar animateToolbarItemIndex:0 duration:0.5 target:trashToolbarButton didFinishSelector:@selector(animateTrashStep2)];
      [UIToolbar commitAnimations];
  
  - (void) animateTrashStep2 {
  }
  </code></pre>