title: How to I fix this "may not respond" warning?
body: <p>How do I get rid of these warnings</p>
  
  <p>"Warning:'UIButton' may not respond to '-setPosition:' </p>
  
  <p>and</p>
  
  <p>"Warning:'UIButton' may not respond to '-addAnimation:forKey'</p>
  
  <p>I get them here:</p>
  
  <pre><code>- (void)monBtnIn {
  
  [monButton setPosition:CGPointMake(113.5,256.5)];
  [monButton addAnimation:[self monInAnimation] 
                      forKey:@"position"];
  </code></pre>
  
  <p>}</p>
  
  <p>Everything builds and loads fine but I dont like warnings. I assume its something to do with the fact that its a UIButton and not a CALayer.</p>
  
  <p>So, how do I make this work for a UIButton?</p>
  
  <p>the .h file</p>
  
  <pre><code>IBOutlet UIButton *monButton;
  </code></pre>
  
  <p>This is the KeyFrameAnimation - it creates a 'springy' animation that settles.</p>
  
  <pre><code>- (CAAnimation*)monInAnimation {
  CGMutablePathRef path = CGPathCreateMutable();
  CGPathMoveToPoint(path,NULL,113,520);
  CGPathAddLineToPoint(path, NULL, 113.5, 286);
  CGPathAddLineToPoint(path, NULL, 113.5, 242);
  CGPathAddLineToPoint(path, NULL, 113.5, 270);  
  CGPathAddLineToPoint(path, NULL, 113.5, 250);
  CGPathAddLineToPoint(path, NULL, 113.5, 262);
  CGPathAddLineToPoint(path, NULL, 113.5, 254);
  CGPathAddLineToPoint(path, NULL, 113.5, 258);
  CGPathAddLineToPoint(path, NULL, 113.5, 256.5);
  
  CAKeyframeAnimation *
  animation = [CAKeyframeAnimation 
               animationWithKeyPath:@"position"];
  
  [animation setPath:path];
  [animation setDuration:1.5];
  NSArray *arr = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0], 
   [NSNumber numberWithFloat:0.12], 
   [NSNumber numberWithFloat:0.24], 
   [NSNumber numberWithFloat:0.36], 
   [NSNumber numberWithFloat:0.48],
   [NSNumber numberWithFloat:0.60],
   [NSNumber numberWithFloat:0.72],
   [NSNumber numberWithFloat:0.84],
   [NSNumber numberWithFloat:1.0],nil];
  
   [animation setKeyTimes:arr];
   [animation setTimingFunctions:[NSArray arrayWithObjects:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut],
                                  [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut], nil]];
   //[animation setAutoreverses:YES];
  CFRelease(path);
  return animation;
  </code></pre>
  
  <p>}</p>
  
  <p>Thank you very much in advance for you help!</p>