title: Add cocos2d menu items at run-time
body: <p>I am trying to add a variable amount of MenuItem objects to a Menu object on runtime. When my game starts I don't really know if my menu is having 2 or for example 5 items.</p>
  
  <pre><code>for (MyItem* item in myItemCollection)
  {
          MenuItemImage* menuItem = [MenuItemImage itemFromNormalImage:@"MenuItem.png" selectedImage:@"MenuItemSelected.png" target:self selector:@selector(options:)];
  }
  </code></pre>
  
  <p>How do I now add the MenuItems to a Menu object. By using addChild I get an exception and I can't really find a solution online.</p>
  
  <p>Also, a side-question: When I can add my MenuItem's this way. How can I get my MenuItems back and change the image they are displaying?</p>