title: Calling an object declared in a function of one class from a function of another class
body: <p>I am in a function of class A(tableview controller) where I have an object of class B(UserDetails class).Something like:</p>
  
  <pre><code>-(void) connectionFinishedLoading:(NSURLConnection*) connection :(UserDetails *) user{
  
  //some code
  user=A;
  }
  </code></pre>
  
  <p>I want to use the value of "user" object in a function(different from the Class A function)  of class C(table view controller).Something like:</p>
  
  <pre><code> -(void)newfunction :(NSURLConnection*) connection{
   //I want to use the value of "user" here.
    }
  </code></pre>
  
  <p>Thanks.  </p>