title: How to use Bolts Framework[Facebook+Parse]
body: <p>Just Now I see <a href="http://venturebeat.com/2014/01/30/facebook-and-parse-launch-bolts-a-better-way-to-develop-ios-android-apps/" rel="nofollow noreferrer">this announcement</a> from Facebook about <strong>Bolts Framework</strong> for IOS. </p>
  
  <p>I can see this as main concept:</p>
  
  <blockquote>
    <p>The first component in Bolts is “tasks”, which make organization of complex asynchronous code more manageable</p>
  </blockquote>
  
  <p>But I didn't get this. I got confused about <code>Bolts framework</code>. How to use it(<strong><code>whether its related to web service or to JSON response parsing</code></strong>). </p>
  
  <p>They provided examples with <code>ParseObject</code> with parse SDK but I don't know about it and they didn't provide any example with Xcode project.</p>
  
  <p>Facebook provided <a href="https://developers.facebook.com/blog/post/2014/01/30/let-s-bolt/" rel="nofollow noreferrer">explanation</a> about this. But I can't figure out how to integrate with my project.</p>
  
  <p>Code they provided is very confusing:</p>
  
  <pre><code>[[object saveAsync:obj] continueWithBlock:^id(BFTask *task) {
    if (task.isCancelled) {
      // the save was cancelled.
    } else if (task.error) {
      // the save failed.
    } else {
      // the object was saved successfully.
      SaveResult *saveResult = task.result;
    }
    return nil;
  }];
  </code></pre>
  
  <p>We can download bolts-framework <a href="https://github.com/BoltsFramework/Bolts-iOS" rel="nofollow noreferrer">here</a>. Can anyone please explain more about this?</p>
  
  <p><strong>Update:</strong> <a href="https://stackoverflow.com/questions/21599172/is-bolts-frameworkparsefacebook-need-to-use-parse-webservice">Here</a> I received some answer about new question of bolts.</p>
  
  <p><strong>Examples:</strong>
          Assume you want to load all images from AssertLibrary and resize all images to standard size while loading, so it will struck if do with main thread. In this place, If you go with async operation means, How to use BFTask with it? Another Ex. In one time, you are trying to call 10 webservice parallel with async operation, how could you use GCD with BFTask?</p>