title: define method with parameters in objective C
body: <p>I am defining method with parameters in Objective C. I defined method in .h file with this code:</p>
  
  <pre><code>-(int)canFindSquare:(NSString *)param1 array:(NSArray *)param2
  </code></pre>
  
  <p>Now, I am working on that method in .m file:</p>
  
  <pre><code>-(int)canFindSquare:(NSString *)param1 array:(NSArray *)param2{
      NSLog(@"something");
  }
  </code></pre>
  
  <p>How can I use string and array in the method?</p>
  
  <p>And also I would like to use that method to return some value. How could I use that method in if statement. Maybe something like this:</p>
  
  <pre><code>is ([self canFindSquare(string1, array1)] == 1){
     // do something here
  }
  </code></pre>
  
  <p>is this correct?</p>