title: How to write the method to execute after completion of two methods (ios)
body: <p>I have 2 methods to be executed on a button click event say <code>method1:</code> and <code>method2:</code> .Both have network calls and so cannot be sure which one will finish first.</p>
  
  <p>I have to execute another method <code>methodFinish</code> after completion both method1: and method2:</p>
  
  <pre><code>-(void)doSomething
  {
  
     [method1:a];
     [method2:b];
  
      //after both finish have to execute
     [methodFinish]
  }
  </code></pre>
  
  <p>How can I achieve this other than the typical <code>start method1:-&gt; completed -&gt; start method2: -&gt;completed-&gt; start methodFinish</code> </p>
  
  <p>Read about blocks..I am very new to blocks.Can anybody help me with writing one for this?And any explanation will be very helpful.Thank you</p>