title: Menu Button in Cocos2d
body: <p>Im trying to make the play button on the main menu of my game in Cocos2d which is an image file. I set up the sprite as playButton with the image Play Button.png. When I ran the app it gave me an error that the "itemFromNormalSprite:selectedSprite:target:selector." is deprecated. Anybody have a solution to this problem? Here is my code:</p>
  
  <pre><code>CCMenuItem *playGameButton = [CCMenuItemSprite itemFromNormalSprite:playButton selectedSprite:playButton target:self selector:@selector(buttonTapped:)];
      CCMenu *menu = [CCMenu menuWithItems:playGameButton, nil];
      menu.position = ccp(size.width/2, size.height/1.5);
      [self addChild:menu z:5];
  </code></pre>