title: How can I access instance variable in class method in Objective-C?
body: <p>I am developing an application in which I implement a class method.h How can I access an instance variable in a class method?</p>
  
  <p>Here is my instance method and an object is created of the class 'SomeClass':</p>
  
  <pre><code>-(void)viewDidLoad
  {
     SomeClass *obj=[SomeClass alloc] init];
  }
  </code></pre>
  
  <p>Here is the class method and in this method I am trying to access instance variable 'obj', so I got an error saying "instance variable 'obj' accessing in class method".</p>
  
  <pre><code>+(void)classMethodImplement
  {
  
  }
  </code></pre>