title: How to Save the Image in custom location programatically?
body: <p>I need to save the image in custom folder location in iOS. I have used the following code to save the image while is saved in default location in devices.</p>
  
  <pre><code>        UIGraphics.BeginImageContext(nativechart.Frame.Size);
          nativechart.Layer.RenderInContext(UIGraphics.GetCurrentContext());
  
          UIImage image = UIGraphics.GetImageFromCurrentImageContext();
          UIGraphics.EndImageContext();
  
          //Captured chart image will save into photo album
  
          image.SaveToPhotosAlbum(new UIImage.SaveStatus(delegate (UIImage img, NSError error) { }));
  
          ////save image
  
          NSData data = image.AsJPEG(1.0f);
          NSFileManager fileManager = NSFileManager.DefaultManager;
          string[] paths = NSSearchPath.GetDirectories(NSSearchPathDirectory.PicturesDirectory, NSSearchPathDomain.All, true);
          string documentsDirectory = paths[0];
          string fullPath = documentsDirectory + "/" + filename;
          fileManager.CreateFile(fullPath, data, new NSDictionary());
  </code></pre>
  
  <p>Could you please help me out to save the image in custom folder location?</p>