title: Calling function in xcode iPhone
body: <p>If I have this function for button click</p>
  
  <pre><code>-(IBAction)loginButton:(UIButton *)sender{ }
  </code></pre>
  
  <p>How can I call this button function from this another method</p>
  
  <pre><code>-(void)increaseAmount {
  myNumber = myNumber+0.01;
  
  if (myNumber &gt;= 1) {
  
      [self loginButton:sender];   
  
  }
  
  progressViewAuto.progress = myNumber;}
  </code></pre>
  
  <p>I have tried the above code but getting error that USE OF UNDECLARED IDENTIFIER 'sender'</p>