title: how to activate a button when another button is clicked in Obj C equivalent to java .doClick()
body: <p>Can someone please elaborate on how to use this <code>[button sendActionsForControlEvents:UIControlEventTouchUpInside];</code> to click a button from within a different button click.</p>
  
  <pre><code>  .m
    int i = 0;
  
  - (IBAction)brain:(UIButton *)sender {
     //Brain of the operation
      i++;
     }
  
  
  - (IBAction)subBrain:(UIButton *)sender {
    if(i &gt; 1){
    /* Here if the brain had been prior clicked then when subBrain is 
    clicked, edit some variables and re-click the brain button 
    how would I go about this?!? Also is there a better way of doing this?*/
    [button sendActionsForControlEvents:UIControlEventTouchUpInside];
    }
  
    }
  
     .h
  - (IBAction)brain:(UIButton *)sender;
  - (IBAction)subBrain:(UIButton *)sender;
  </code></pre>