title: Scope NSArray in Objective-C
body: <p>In GLViewController.m file</p>
  
  <p>At the very top of Implementation</p>
  
  <pre><code>NSArray* imageArray ;
  </code></pre>
  
  <p>Then in GLViewController.m inside GLViewController </p>
  
  <pre><code>- (id)initWithCoder:(NSCoder*)coder 
  {
   imageArray  = @[ @"baban.jpg",@"cete.jpg",@"cipan.jpg",@"kuc.jpg"];
  }
  </code></pre>
  
  <p>Inside drawView in GLViewController.m</p>
  
  <pre><code>NSLog(imageArray[0]);  //Fails
  </code></pre>
  
  <p>I've got it declared in the GLViewController.h file too:</p>
  
  <pre><code>NSArray* imageArray;
  </code></pre>
  
  <p>I am including GLViewController.h in the GLViewController.m</p>