title: How to access the current layer in cocos2d
body: <p>I have an iphone app built with cocos2d and need to access the current layer from another class. I have a HelloWorldLayer and a Cannon and I need to access the HelloWorldLayer from my Cannon node. How can I access the HelloWorldLayer? I have tried creating a static instance of my layer like below but it adds dealloc problems that I can't seem to fix. How can I access my current layer from another class? Please help?</p>
  
  <pre><code>static HelloWorldLayer* helloWorldLayerInstance;
  </code></pre>