title: Xcode for How to call function from one class to another class function in iPhone Apps
body: <p>JewelsSharedController.m:</p>
  
  <pre><code>-(void)GetCountries:(id)sender detailDictionary:(id)details
  {
  }
  </code></pre>
  
  <p>and I want to call this function in  <code>RootViewController</code>'s function like<br>
  RootController.m:</p>
  
  <pre><code>-(void)soapresult
  {
      //i want to call ""GetContries "" here..
  }
  </code></pre>
  
  <p>and i m call this <code>"soapresult"</code> in to</p>
  
  <pre><code>-(void)viewdidLoad
  {
      [self soapresult];
  }
  </code></pre>
  
  <p>but when calling function its crash</p>