title: How to use PHPhotoLibrary like ALAssetsLibrary
body: <p>For iOS9, <code>ALAssetsLibrary</code> is deprecated. So how to change it as <code>PHPPhotoLibrary</code> instead of <code>ALAssets</code>? </p>
  
  <pre><code>if (RecordedSuccessfully &amp;&amp; recording == NO) {
      //----- RECORDED SUCESSFULLY -----
      NSLog(@"didFinishRecordingToOutputFileAtURL - success");
      ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
      if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:outputFileURL])
      {
          [library writeVideoAtPathToSavedPhotosAlbum:outputFileURL
                                      completionBlock:^(NSURL *assetURL, NSError *error)
           {
               if (error)
               {
  
               }
           }];
      }
  </code></pre>
  
  <p>// i have tried this, but didnt work</p>
  
  <pre><code>[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
  
          PHAssetChangeRequest* createAssetRequest = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL:outputFileURL];
  
          NSParameterAssert(createAssetRequest);
      }
                                        completionHandler:^(BOOL success, NSError *error) {}];
      }
  }
  </code></pre>