I had connected iCloud using xamarin forms ios. My file copied to icloud without any error. But it saved in file:///private/var/mobile/Library/Mobile%20Documents/iCloud~com~companyname~MobileDoc/ path.
When i checked inside iCloud my file not showing it. But when i search that file, its location shows as iCloud --> MobileDoc--> File.txt. But when i checked inside the iCloud there are no Folder call MobileDoc.
Try
UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(documentPicker, true, null);
Answers
It seems iCloud does not have a general open file storage facility like MobileMe's iDisk, or Dropbox etc.
You can only access documents stored in iCloud from within the app that created them.
Refer https://discussions.apple.com/thread/4251410
Is that file hidden in your mac ? Try to show them using terminal.
https://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
@ColeX Thanks i will tried it. other hidden files are showed after that. but my folder not visible.
Try this solution :https://apple.stackexchange.com/a/316672
@ColeX thanks. Now i am going to use UIDocumentPickerViewController and try this upload manually. Its also confusing, Got some erros in Appdelegate folder.
My Appdelegate file is public partial But getting error
What error ? can you post it here ?
I can't use this code inside
Appdelegate. This code is in
Try
Thanks it remove the error. Another thing to know
UIDocumentPickerViewController documentPicker = new UIDocumentPickerViewController(NSUrl.FromFilename(filePath), UIDocumentPickerMode.ExportToService);
This NSUrl.FromFilename(filePath) not getting correctly. Can't add only filepath for that.
@ColeX Thanks for all reply.